The following JCK1.3 test fails on Linux RedHat 6.2 and Windows:
api/org_omg/CORBA/CStatus/CStatusTest.html#CStatus_test_compilation
To reproduce the bug, run script below
You may need to set JCK and JAVA_HOME.
-------------------------------------------------------------------------------------
#!/bin/sh
SWITCH="$@"
JAVA_HOME=/usr/local/java/jdk1.4/linux-i386
JCK=/net/orthello/home2/JCK-13
CLASSPATH=$JCK/classes:$JCK/javatest.jar
export CLASSPATH
executeClass="javasoft.sqe.tests.api.org_omg.CORBA.CStatus.CStatusClient -server javasoft.sqe.tests.api.org_omg.CORBA.CStatus.CStatusServer -ORBInitialHost localhost -ORBInitialPort 9876"
$JAVA_HOME/bin/java ${SWITCH} -version
$JAVA_HOME/bin/tnameserv -ORBInitialPort 9876 &
$JAVA_HOME/bin/java ${SWITCH} -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy ${executeClass}
RESULT="$?"
if [ $RESULT = 95 ]; then
echo Test passed
elif [ $RESULT = 97 ]; then
echo Test failed
else
echo Result is $RESULT
fi
------------------------------------ output ------------------------------------------
java version "1.4.0beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b40)
Java HotSpot(TM) Client VM (build 1.4beta-B40, mixed mode)
Checking for assertion
Creating StreamObject from object
Verifying for JDK version : 1.2
Creating the spec class
Verifying the constraints on the serial fields
ConstructorTest0001 failed. The algorithm returned is false
ConstructorTest0001: Failed.
STATUS:Failed.tests: 1; failed: 1; first test case failure: ConstructorTest0001
Test failed
[kotl@linux-14 security]$
======================================================================