-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
hopper
-
sparc
-
solaris_2.6
-
Verified
Name: aaR10142 Date: 03/20/2002
POA.the_children() method throws unexpected java.lang.ClassCastException
See example:
------------- ORBTest.java ---------------------
import org.omg.CORBA.*;
import org.omg.PortableServer.*;
public class ORBTest {
public static void main(String argv[]) {
try {
ORB orb = ORB.init(argv, null);
POA rootPOA = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
String names [] = {"Test", "Test1", "Test2",
"Test with whitespaces"
};
POA testPOA = rootPOA.create_POA(names [0], null, new Policy[0]);
POA children[] = {
testPOA.create_POA(names [0], null, new Policy[0]),
testPOA.create_POA(names [1], null, new Policy[0]),
testPOA.create_POA(names [2], null, new Policy[0]),
testPOA.create_POA(names [3], null, new Policy[0])};
testPOA.the_children ();
System.out.println("Okay");
} catch(Exception e) {
System.out.println("ERROR : " + e);
e.printStackTrace(System.out);
}
}
}
------------------- start --------------------
#>javac -classpath . -d . ORBTest.java
#>java -classpath . ORBTest
----------------- 1.4 output -----------------
RROR : java.lang.ClassCastException: [Ljava.lang.Object;
java.lang.ClassCastException: [Ljava.lang.Object;
at com.sun.corba.se.internal.POA.POAImpl.the_children(POAImpl.java:792)
at ORBTest.main(ORBTest.java:25)
---------------------------------------------------------
======================================================================
********************************************************************************
###@###.### 2002-06-12
Fix verified ok
- with build: j2sdk-1_4_1-beta-bin-b14-solaris-sparc-04_jun_2002
- with test: /net/kokuho/corba-sqe/hopper_bugs_verification/corba-dev-tests/test/src/share/classes/hopper/h4655388
********************************************************************************