JDK-4877776 : REGRESSION: RegTest-test swing/JComboBox/4673367/KeyTest.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-06-12
  • Updated: 2003-08-06
  • Resolved: 2003-08-04
Related Reports
Relates :  
Description

Name: mmR10223			Date: 06/12/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b08 (passes on JDK1.5.0-b07, JDK1.4.2-b25)
Testbase       : RegTest-test
Platform[s]    : Windows
switch/Mode    : default
Falling test[s]: javax/swing/JComboBox/4673367/KeyTest.java 

RegTest-test javax/swing/JComboBox/4673367/KeyTest.java test fails on JDK1.5.0-b08 by reason of 
the bug 4673367.

Test source location:
=====================
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/swing/JComboBox/4673367/KeyTest.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/tiger/b08/regtest/win32/winXP_PRO_-server_smp_linux-16/workDir/test/javax/swing/JComboBox/4673367/KeyTest.jtr

How to reproduce:
=================
Run the following script (you may need to change its variables)
 
--- script start ---
#!/bin/sh

RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
JT_HOME="h:/java/jct"
JAVA_HOME="h:/java/jdk1.5.0/win32"
TEST_BASE_PATH="h:/java/regtest/test"

TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME

CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar;$JT_HOME/jemmy/jemmy.jar"

export JAVA_HOME
export JT_HOME
export TESTWITH
export CLASSPATH

mkdir -p $WORK_DIR/scratch 2>&1
mkdir -p $WORK_DIR/jtData 2>&1
mkdir -p $REPORT_DIR 2>&1

#rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

cd $WORK_DIR/scratch

$JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,windir=$windir,PATH=${SHELL%/*},CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-16" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/javax/swing/JComboBox/4673367/KeyTest.java"

--- script end ---

Script output:
==============

Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(40/2783)----------
java.lang.RuntimeException: Popup should not be visible
	at KeyTest$PopupAdapter.popupMenuWillBecomeVisible(KeyTest.java:135)
	at javax.swing.JComboBox.firePopupMenuWillBecomeVisible(JComboBox.java:932)
	at javax.swing.plaf.basic.BasicComboPopup.firePopupMenuWillBecomeVisible(BasicComboPopup.java:323)
	at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:790)
	at javax.swing.JPopupMenu.show(JPopupMenu.java:960)
	at javax.swing.plaf.basic.BasicComboPopup.show(BasicComboPopup.java:184)
	at javax.swing.plaf.basic.BasicComboBoxUI.setPopupVisible(BasicComboBoxUI.java:780)
	at javax.swing.JComboBox.setPopupVisible(JComboBox.java:790)
	at javax.swing.plaf.basic.BasicComboBoxUI$Actions.actionPerformed(BasicComboBoxUI.java:1259)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1540)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2449)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2495)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2412)
	at javax.swing.JComboBox.processKeyEvent(JComboBox.java:1354)
	at java.awt.Component.processEvent(Component.java:4914)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3620)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3482)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1737)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:633)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:880)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:759)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:598)
	at java.awt.Component.dispatchEventImpl(Component.java:3511)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Window.dispatchEventImpl(Window.java:1610)
	at java.awt.Component.dispatchEvent(Component.java:3482)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Popup should not be visible
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Popup should not be visible
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Popup should not be visible


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Popup should not be visible


Specific machine info:
======================
Hostname: linux-16
OS: Windows XP Pro


======================================================================

Comments
EVALUATION This problem can be reproduced only on b08. On all the promoted builds before and after b08 this test passes. Looks like the problem was in this particular build and has been fixed in process of further development. ###@###.### 2003-08-04
04-08-2003