-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
rc1
-
generic
-
generic
-
Verified
Name: naC79102 Date: 10/25/99
The documentation for the create_string_tc(int bounds) method
in org.omg.CORBA.ORB class states that the method throws a BAD_PARAM
exception if zero is supplied as a parameter. However this behaviour is not
seen.
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;
public class Test {
public Test() {
try {
ORB orb = ORB.init();
int bound = 0;
TypeCode type = orb.create_string_tc(bound);
System.out.println("orb.create_string_tc(0) .... BAD_PARAM not got!");
}
catch (org.omg.CORBA.BAD_PARAM badExc) {
System.out.println("orb.create_string_tc(0) .... BAD_PARAM got");
}
}
public static void main(String[] args) {
new Test();
}
}
======================================================================
Name: naC79102 Date: 10/25/99
The same problem is seen in
org.omg.CORBA.ORB.create_wstring_tc(int bounds)
======================================================================
- relates to
-
JDK-4290049 org.omg.CORBA.ORB.create_string_tc should throw BAD_PARAM for negative values
-
- Closed
-