IDLインタフェース内で宣言される定数は,IDLインタフェースに対応するJavaインタフェースOperationsクラス内の,public static finalフィールドにマッピングされます。
/*From Example.idl:*/
module Example {
interface Foo {
const long aLongerOne =-321;
};
};
//Foo.java
package Example;
public interface Foo extends
com.inprise.vbroker.CORBA.Object,
Example.FooOperations,
org.omg.CORBA.portable.IDLEntity {
}
//FooOperations.java
package Example;
public interface FooOperations {
public final static int aLongerOne =(int)-321;
}