-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.0
-
x86, sparc
-
generic, linux
The following JCK1.3 tests fail on Linux RedHat 6.2, Sparc Solaris, Windows
api/javax_swing/FocusManager/descriptions.html#getset
api/javax_swing/DefaultFocusManager/index.html#getset
The script below runs test api/javax_swing/FocusManager/descriptions.html#getset.
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.FocusManager.getsetTests -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
------------------------------------ Linux 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)
====== FocusManager2002 ====== public static void setCurrentManager(FocusManager) and public static FocusManager getCurrentManager()
java.lang.NullPointerException
at javax.swing.DelegatingDefaultFocusManager.setDefaultFocusTraversalPolicy(FocusManager.java:172)
at javax.swing.DefaultFocusManager.<init>(DefaultFocusManager.java:41)
at javax.swing.DelegatingDefaultFocusManager.<init>(FocusManager.java:125)
at javax.swing.FocusManager.getCurrentManager(FocusManager.java:63)
at javasoft.sqe.tests.api.javax.swing.FocusManager.getsetTests.FocusManager2002(getsetTests.java:49)
at java.lang.reflect.Method.invoke(Native Method)
at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
at javasoft.sqe.tests.api.javax.swing.FocusManager.getsetTests.main(getsetTests.java:35)
FocusManager2002: Failed. Test case throws exception: java.lang.NullPointerException
====== FocusManager2003 ====== public static void disableSwingFocusManager() and public static boolean isFocusManagerEnabled()
FocusManager2003: Passed. OKAY
====== FocusManager2004 ====== public static final String FOCUS_MANAGER_CLASS_PROPERTY
FocusManager2004: Passed. OKAY
STATUS:Failed. tests: 3; passed: 2; failed: 1; first test case failure: FocusManager2002
Test failed
======================================================================
api/javax_swing/FocusManager/descriptions.html#getset
api/javax_swing/DefaultFocusManager/index.html#getset
The script below runs test api/javax_swing/FocusManager/descriptions.html#getset.
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.FocusManager.getsetTests -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
------------------------------------ Linux 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)
====== FocusManager2002 ====== public static void setCurrentManager(FocusManager) and public static FocusManager getCurrentManager()
java.lang.NullPointerException
at javax.swing.DelegatingDefaultFocusManager.setDefaultFocusTraversalPolicy(FocusManager.java:172)
at javax.swing.DefaultFocusManager.<init>(DefaultFocusManager.java:41)
at javax.swing.DelegatingDefaultFocusManager.<init>(FocusManager.java:125)
at javax.swing.FocusManager.getCurrentManager(FocusManager.java:63)
at javasoft.sqe.tests.api.javax.swing.FocusManager.getsetTests.FocusManager2002(getsetTests.java:49)
at java.lang.reflect.Method.invoke(Native Method)
at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
at javasoft.sqe.tests.api.javax.swing.FocusManager.getsetTests.main(getsetTests.java:35)
FocusManager2002: Failed. Test case throws exception: java.lang.NullPointerException
====== FocusManager2003 ====== public static void disableSwingFocusManager() and public static boolean isFocusManagerEnabled()
FocusManager2003: Passed. OKAY
====== FocusManager2004 ====== public static final String FOCUS_MANAGER_CLASS_PROPERTY
FocusManager2004: Passed. OKAY
STATUS:Failed. tests: 3; passed: 2; failed: 1; first test case failure: FocusManager2002
Test failed
======================================================================
- duplicates
-
JDK-4381211 FocusManager.getCurrentManager() method throws NPE
- Closed