-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
None
-
beta2
-
sparc
-
solaris_8
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2038116 | 1.4.0 | Stefan Bauer | P3 | Closed | Won't Fix |
An attempt to marshall an idl union type with a discrminant generates a
org.omg.CORBA.MARSHAL exception. For example,
module IDLUnionBug {
typedef short IdentityTokenType;
const IdentityTokenType ITTAbsent = 0;
const IdentityTokenType ITTAnonymous = 1;
union IdentityToken switch ( IdentityTokenType ) {
case ITTAbsent: boolean absent;
case ITTAnonymous: boolean anonymous;
};
}; // IDLUnionBug
The problem only occurs when the discriminant ( IdentityTokenType in the
above example ) is aliased to an existing type ( short in the above
example ).
org.omg.CORBA.MARSHAL exception. For example,
module IDLUnionBug {
typedef short IdentityTokenType;
const IdentityTokenType ITTAbsent = 0;
const IdentityTokenType ITTAnonymous = 1;
union IdentityToken switch ( IdentityTokenType ) {
case ITTAbsent: boolean absent;
case ITTAnonymous: boolean anonymous;
};
}; // IDLUnionBug
The problem only occurs when the discriminant ( IdentityTokenType in the
above example ) is aliased to an existing type ( short in the above
example ).
- backported by
-
JDK-2038116 Marshalling exception for discriminated union idl types
-
- Closed
-