United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6624178 Regression test fails: test/closed/javax/swing/JComboBox/4515752/DefaultButtonTest.java
JDK-6624178 : Regression test fails: test/closed/javax/swing/JComboBox/4515752/DefaultButtonTest.java

Details
Type:
Bug
Submit Date:
2007-10-31
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
Regression test fails: test/closed/javax/swing/JComboBox/4515752/DefaultButtonTest.java

JDK: 7 b22
Tested OSes: 
- Solaris nevada b70: sometimes test fails, sometimes test passes
- Linux i686: test fails
- Windows XP: test passes

Stack trace:
java.lang.RuntimeException: defaultButtonPressed unexpectedly = false
	at DefaultButtonTest.testDefaultButton(DefaultButtonTest.java:111)
	at DefaultButtonTest$RobotThread.run(DefaultButtonTest.java:92)
	at java.lang.Thread.run(Thread.java:675)

The test logs are in the attachment.

                                    

Comments
EVALUATION

Looks like a JRobot timing issue.
                                     
2007-10-31
EVALUATION

The bug is in the regression test itself. The test has a tricky thread synchronization, which sometimes works wrong. A fix can replace it with more robust algorithm based on SunToolkit.realSync().
                                     
2007-12-28
SUGGESTED FIX

The approved webrev revision was copied to
NFS: /net/sa.sfbay/export/home/swing/data/7/6624178.0
URL: http://sa.sfbay.sun.com/projects/swing_data/7/6624178.0
                                     
2008-08-05



Hardware and Software, Engineered to Work Together