-
Bug
-
Resolution: Fixed
-
P1
-
1.4.0
-
rc1
-
x86
-
linux
-
Verified
JDK : JDK1.4.0-rc-b90
JCK : JCK1.4-b15
Platform[s] : RedHat Linux 7.1, RedHat Linux 6.2
switch/Mode : -client -Xmixed
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test : api/javax_swing/plaf/basic/BasicMenuItemUI/index.html#protected [BasicMenuItemUI2004]
The test fails when running on the following computer configuraion:
Intel Pentium III 800MHz / 256Mb / HDD 17 Gb SCSI / video Matrox G200 AGP / CD-ROM drive/ Sound on board VIA686a,
RedHat Linux 7.1, sawfish-0.38-11
The test fails with "-client -Xmixed -Xfuture", "-server -Xmixed" switches.
The test passes if only single testcase BasicMenuItemUI2004 is executed.
Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_swing/plaf/basic/BasicMenuItemUI/protectedTests.java
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/merlin/b90/jck14/linux/redhat7.1_gnome_client_noclassgc_verify_linux-14/workDir/api/javax_swing/plaf/basic/BasicMenuItemUI/index_protected.jtr
How to reproduce:
====================
Run the following script under RedHat Linux 7.1
(probably, you need to change JCK and JAVA_HOME paths):
--------Script START---------------------
#!/bin/sh
JAVA_HOME=/net/jdk/export/disk8/local.java/jdk1.4/linux-i386
JCK=/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14
export CLASSPATH="$JCK/classes:$JCK/javatest.jar"
executeClass="javasoft.sqe.tests.api.javax.swing.plaf.basic.BasicMenuItemUI.protectedTests -TestCaseID BasicMenuItemUI2004"
$JAVA_HOME/bin/java -Xfuture $@ ${executeClass}
echo "======================================================================================"
executeClass="javasoft.sqe.tests.api.javax.swing.plaf.basic.BasicMenuItemUI.protectedTests"
$JAVA_HOME/bin/java -Xfuture $@ ${executeClass}
---------Script END----------------------
Test output:
=============
Warning: Cannot convert string "MetaCtrl<Key>Insert" to type VirtualBinding
BasicMenuItemUI2004: Passed. OKAY
====== BasicMenuItemUI2004 ====== protected void installListeners()
STATUS:Passed.tests: 1; passed: 1
======================================================================================
Warning: Cannot convert string "MetaCtrl<Key>Insert" to type VirtualBinding
BasicMenuItemUI0006: Passed. OKAY
java.lang.NullPointerException: NullPointerException
at sun.awt.motif.X11InputMethod.createXICNative(Native Method)
at sun.awt.motif.X11InputMethod.activate(X11InputMethod.java:263)
at sun.awt.im.InputContext.activateInputMethod(InputContext.java:339)
at sun.awt.im.InputContext.focusGained(InputContext.java:303)
at sun.awt.im.InputContext.dispatchEvent(InputContext.java:215)
at sun.awt.im.InputMethodContext.dispatchEvent(InputMethodContext.java:180)
at java.awt.Component.dispatchEventImpl(Component.java:3476)
at java.awt.Container.dispatchEventImpl(Container.java:1437)
at java.awt.Window.dispatchEventImpl(Window.java:1566)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1700)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:700)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:403)
at java.awt.Component.dispatchEventImpl(Component.java:3396)
at java.awt.Container.dispatchEventImpl(Container.java:1437)
at java.awt.Window.dispatchEventImpl(Window.java:1566)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.KeyboardFocusManager.retargetFocusEvent(KeyboardFocusManager.java:2322)
at java.awt.Component.dispatchEventImpl(Component.java:3391)
at java.awt.Container.dispatchEventImpl(Container.java:1437)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.Container.addImpl(Container.java:493)
at java.awt.Container.add(Container.java:298)
at javasoft.sqe.tests.api.javax.swing.plaf.basic.BasicMenuItemUI.protectedTests.BasicMenuItemUI2004(protectedTests.java:149)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:407)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:203)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:135)
at javasoft.sqe.tests.api.javax.swing.plaf.basic.BasicMenuItemUI.protectedTests.main(protectedTests.java:37)
BasicMenuItemUI2004: Failed. Test case throws exception: java.lang.NullPointerException: NullPointerException
BasicMenuItemUI2005: Passed. OKAY
BasicMenuItemUI2006: Passed. OKAY
BasicMenuItemUI2007: Passed. OKAY
BasicMenuItemUI0007: Passed. OKAY
BasicMenuItemUI0008: Passed. OKAY
BasicMenuItemUI2008: Passed. OKAY
BasicMenuItemUI2009: Passed. OKAY
BasicMenuItemUI0009: Passed. OKAY
BasicMenuItemUI0010: Passed. OKAY
BasicMenuItemUI2010: Passed. OKAY
BasicMenuItemUI2011: Passed. OKAY
BasicMenuItemUI2012: Passed. OKAY
====== BasicMenuItemUI0006 ====== protected void doClick(MenuSelectionManager msm)
====== BasicMenuItemUI2004 ====== protected void installListeners()
====== BasicMenuItemUI2005 ====== protected void uninstallListeners()
====== BasicMenuItemUI2006 ====== protected void installDefaults()
====== BasicMenuItemUI2007 ====== protected void uninstallDefaults()
====== BasicMenuItemUI0007 ====== protected void installComponents(JMenuItem c)
====== BasicMenuItemUI0008 ====== protected void uninstallComponents(JMenuItem c)
====== BasicMenuItemUI2008 ====== protected void installKeyboardActions()
====== BasicMenuItemUI2009 ====== protected void uninstallKeyboardActions()
====== BasicMenuItemUI0009 ====== protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)
====== BasicMenuItemUI0010 ====== protected String getPropertyPrefix()
====== BasicMenuItemUI2010 ====== protected MouseInputListener mouseInputListener
====== BasicMenuItemUI2011 ====== protected MenuDragMouseListener menuDragMouseListener
====== BasicMenuItemUI2012 ====== protected MenuKeyListener menuKeyListener
STATUS:Failed.tests: 14; passed: 13; failed: 1; first test case failure: BasicMenuItemUI2004
Test failed
Specific Machine Info:
=====================
Hostname: linux-14
OS: RedHat Linux 7.1
Hostname: jtg-linux13
OS: RedHat Linux 7.1
- relates to
-
JDK-4620655 Remove assumption on FOCUS_GAINED event in a component without a peer
- Open