-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
beta
-
x86
-
windows_nt
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2022984 | 1.4.2 | Stefan Bauer | P4 | Closed | Fixed | only |
Name: js5519 Date: 09/24/98
The visigenic IDL compiler produces the following prototypical code for it "helper"classes.
public static Test.NameValueList extract(org.omg.CORBA.Any any) {
if(!any.type().equal(type())) {
throw new org.omg.CORBA.BAD_TYPECODE();
}
return read(any.create_input_stream());
}
The jdk compiler does not have the test for the BAD_TYPECODE condition (which may be another bug!).
However, if you try and use the visibroker code on the JDK ORB you will find that the equal() method will return false even if the two typecodes are the SAME object!
This is a contrived example, but there does seem to be a bug in the org.omg.CORBA.TypeCode.equal() method.
More testing should be done on this method.
(Review ID: 39267)
======================================================================
- backported by
-
JDK-2022984 org.omg.CORBA.TypeCode.equal() method bug
-
- Closed
-