The following JCK1.3 tests fail on Linux RedHat 6.2 and Windows:
api/javax_swing/KeyStroke/descriptions.html#get
api/javax_swing/LookAndFeel/descriptions.html#news
api/javax_swing/UIDefaults/LazyInputMap/index.html#misc
api/javax_swing/ComponentInputMap/index.html#other
api/javax_swing/ToolTipManager/descriptions.html#register
api/javax_swing/ToolTipManager/descriptions.html#getset
api/javax_swing/ToolTipManager/descriptions.html#sharedInstance
api/javax_swing/InputMap/index.html#other
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.javax.swing.LookAndFeel.newsTests -TestCaseID ALL"
$JAVA_HOME/bin/java ${SWITCH} -version
$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)
Exception in thread "main" java.lang.UnsatisfiedLinkError: allocateNewInstance
at java.awt.AWTKeyStroke.allocateNewInstance(Native Method)
at java.awt.AWTKeyStroke.registerSubclass(AWTKeyStroke.java:139)
at javax.swing.KeyStroke.getKeyStroke(KeyStroke.java:248)
at javasoft.sqe.tests.api.javax.swing.LookAndFeel.newsTests.<init>(newsTests.java:35)
at javasoft.sqe.tests.api.javax.swing.LookAndFeel.newsTests.main(newsTests.java:83)
Result is 1
======================================================================
- duplicates
-
JDK-4402025 AWTKeyStroke does not load native libraries
-
- Closed
-