JDK-6423050 : javax/swing/JToolBar/4529206/bug4529206.java test fails on winxp,cinnabar and RHAS3 platforms.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-05-08
  • Updated: 2011-01-19
  • Resolved: 2006-05-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b86Fixed
Related Reports
Relates :  
Description
Bug Info:
=========
javax/swing/JToolBar/4529206/bug4529206.java test fails with java.lang.RuntimeException.

Tested Platforms:
=================
Winxp Prof.
RHAS3
Cinnabar

JDK Info:
=========
java version "1.6.0-swing_int_jcg_linux_03"
Java(TM) SE Runtime Environment (build 1.6.0-swing_int_jcg_linux_03-jcg-integrator_03_may_2006_12_03-b00)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b82, mixed mode)

Test Source Location:
======================
/net/sqindia/export/disk11/swing/mustangbinaries/PIT.04.May.2006/test/javax/swing/JToolBar/4529206/bug4529206.java

 Steps to reproduce:
 ====================
 1. Set JAVA_HOME to PIT b84.
 2. cd /net/sqindia/export/disk11/swing/mustangbinaries/PIT.04.May.2006/test/javax/swing/JToolBar/4529206
 3. /net/koori.sfbay/onestop/jct-tools/2.1.6/archive/fcs/binaries/win32/bin/jtreg -r:/tmp -w:/tmp ./bug4529206.java


Please check the attached jtr file.

Comments
EVALUATION Yes, it is a timing issue with the test. The exception is thrown when the test frame has become visible and having focus, but the floating toolbar haven't properly shown and haven't got it yet. When I have replaced Util.blockTillDisplayed() by SunToolkit.realSync() at the 35 line of the test, all will work fine.
15-05-2006

SUGGESTED FIX Replace Util.blockTillDisplayed(this); by ((SunToolkit)Toolkit.getDefaultToolkit()).realSync(); at the 35 line of the test.
15-05-2006

EVALUATION Not a regression in the recent PIT build. Looks like a timing issue with the test. With 1.5, a toolbar shows up and sits there for 3 seconds. With 1.6., it seems to only flash quickly. I ran a bunch of times on XP and it passed once and failed the rest.
08-05-2006