JDK-5099440 : Uncontrolled rapid focus switching between two windows
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2004-09-09
  • Updated: 2007-05-15
  • Resolved: 2007-05-15
Related Reports
Duplicate :  
Relates :  
Description
Name: dk106046			Date: 09/09/2004

OPERATING SYSTEM(S):
Windows Server 2003, x64 Standard Edition on AMD64 machine

FULL JDK VERSION(S):
java version "1.5.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
Java HotSpot(TM) 64-bit Server VM (build 1.5.0-rc-b63, mixed mode)



This error occurs when running the bluej interactive java application (from www.bluej.org)


Steps to reproduce
==================
i)    Start the bluej main application then do the following:
ii)   Click on Project -> Open Project...
iii)  Open the "bluejexamples" directory and select "debugdemo"
iv)   This will open debugdemo project... then  place the cursor on Demo class and right click on it.
v)    Select "Open Editor" it will open a Demo editor  and find the method "carTest" .
vi)   Set a breakpoint for line 'places = myCar.seats()' in the carTest() method.
vii)  After setting the breakpoint, right click on the "Demo" class in the "Bluej: debugdemo"
        window and Create Demo object by selecting "new Demo()" it will open "Create Object window"
        ... then click on "OK" button and the created object is placed on the object panel.
viii) Place the cursor on the created object and right click and select 'int carTest()'.The Debugger
        window will open ... then click on 'Step Into' button on the Debugger window. After clicking the
        'Step Into' button the Bluej application hangs.

The hang manifests as two flickering instances of the "Car" window, redrawing on top of one another.
Minimizing either of these windows appears to stop this redraw cycle, and the test can be completed.

It appears that the focus is not being set correctly on either "Car" window.

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

Comments
EVALUATION Name: at153223 Date: 09/13/2004 I tried to reproduced it on [Windows XP + Intel P4], but couldn't. This might be a thread race. Should be investigated in mustang. ###@###.### ======================================================================
14-09-2004

WORK AROUND Name: dk106046 Date: 09/09/2004 Minimizing one of the "car" windows appears to enable the application to continue running. ======================================================================
14-09-2004