JDK-6848408 : java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2009-06-05
  • Updated: 2011-01-19
  • Resolved: 2010-08-31
Related Reports
Relates :  
Description
The test fails on linux-i586, Gnome/Compiz 2.24/0.7.8 with the current JDK 7 (~ b59):

----------System.out:(82/9626)----------
* * * STAGE 1 * * *
Window owner: java.awt.Frame[Frame-owner,100,0,100x100,invalid,hidden,layout=java.awt.BorderLayout,title=Frame,resizable,normal]
java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on Frame-owner
java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Dialog-owner
* * * STAGE 2 * * *
Window nowner: java.awt.Frame[Frame-owner,100,24,100x100,invalid,hidden,layout=java.awt.BorderLayout,title=Frame,resizable,normal]
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Frame-owner
java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
* * * STAGE 3 * * *
Widow owner: java.awt.Frame[Frame-owner,100,24,100x100,invalid,hidden,layout=java.awt.BorderLayout,title=Frame,resizable,normal]
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Dialog-owner
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Frame-owner
java.awt.event.WindowEvent[WINDOW_ACTIVATED,opposite=null,oldState=0,newState=0] on Frame-owner
java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=null,oldState=0,newState=0] on Frame-owner
java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on java.awt.Frame[Frame-owner,100,24,100x100,layout=java.awt.BorderLayout,title=Frame,resizable,normal]
java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=java.awt.Button[button0,0,0,100x100,label=button],cause=ACTIVATION] on java.awt.Frame[Frame-owner,100,24,100x100,invalid,layout=java.awt.BorderLayout,title=Frame,resizable,normal]
java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Window[2nd child,100,500,100x100,layout=java.awt.BorderLayout],oldState=0,newState=0] on Frame-owner
java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[Frame-owner,100,24,100x100,invalid,layout=java.awt.BorderLayout,title=Frame,resizable,normal],oldState=0,newState=0] on 2nd child
java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=java.awt.Frame[Frame-owner,100,24,100x100,invalid,layout=java.awt.BorderLayout,title=Frame,resizable,normal],cause=ACTIVATION] on java.awt.Button[button0,0,0,100x100,label=button]
java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=null,cause=CLEAR_GLOBAL_FOCUS_OWNER] on java.awt.Button[button0,0,0,100x100,invalid,label=button]
java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Frame[Frame-owner,100,24,100x100,invalid,layout=java.awt.BorderLayout,title=Frame,resizable,normal],oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Window[2nd child,100,500,100x100,invalid,hidden,layout=java.awt.BorderLayout],oldState=0,newState=0] on Frame-owner
java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on java.awt.Frame[Frame-owner,100,24,100x100,invalid,layout=java.awt.BorderLayout,title=Frame,resizable,normal]
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=null,cause=CLEAR_GLOBAL_FOCUS_OWNER] on java.awt.Frame[Frame-owner,100,24,100x100,invalid,hidden,layout=java.awt.BorderLayout,title=Frame,resizable,normal]
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Dialog-owner
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Frame-owner
* * * STAGE 1 * * *
Window owner: java.awt.Dialog[Dialog-owner,100,0,100x100,invalid,hidden,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on Dialog-owner
java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
* * * STAGE 2 * * *
Window nowner: java.awt.Dialog[Dialog-owner,100,24,100x100,invalid,hidden,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Dialog-owner
java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
* * * STAGE 3 * * *
Widow owner: java.awt.Dialog[Dialog-owner,100,24,100x100,invalid,hidden,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Dialog-owner
java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Dialog[Dialog-owner,100,24,100x100,layout=java.awt.BorderLayout,MODELESS,title=Dialog],oldState=0,newState=0] on Frame-owner
java.awt.event.WindowEvent[WINDOW_DEACTIVATED,opposite=java.awt.Dialog[Dialog-owner,100,24,100x100,layout=java.awt.BorderLayout,MODELESS,title=Dialog],oldState=0,newState=0] on Frame-owner
java.awt.event.WindowEvent[WINDOW_ACTIVATED,opposite=java.awt.Frame[Frame-owner,100,24,100x100,invalid,hidden,layout=java.awt.BorderLayout,title=Frame,resizable,normal],oldState=0,newState=0] on Dialog-owner
java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[Frame-owner,100,24,100x100,invalid,hidden,layout=java.awt.BorderLayout,title=Frame,resizable,normal],oldState=0,newState=0] on Dialog-owner
java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on java.awt.Dialog[Dialog-owner,100,24,100x100,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=java.awt.Button[button0,0,0,100x100,label=button],cause=ACTIVATION] on java.awt.Dialog[Dialog-owner,100,24,100x100,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Window[2nd child,100,500,100x100,layout=java.awt.BorderLayout],oldState=0,newState=0] on Dialog-owner
java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Dialog[Dialog-owner,100,24,100x100,layout=java.awt.BorderLayout,MODELESS,title=Dialog],oldState=0,newState=0] on 2nd child
java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=java.awt.Dialog[Dialog-owner,100,24,100x100,layout=java.awt.BorderLayout,MODELESS,title=Dialog],cause=ACTIVATION] on java.awt.Button[button0,0,0,100x100,label=button]
java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=null,cause=CLEAR_GLOBAL_FOCUS_OWNER] on java.awt.Button[button0,0,0,100x100,invalid,label=button]
java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Dialog[Dialog-owner,100,24,100x100,invalid,layout=java.awt.BorderLayout,MODELESS,title=Dialog],oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Window[2nd child,100,500,100x100,invalid,hidden,layout=java.awt.BorderLayout],oldState=0,newState=0] on Dialog-owner
java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on java.awt.Dialog[Dialog-owner,100,24,100x100,invalid,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
Test passed.
java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=null,cause=CLEAR_GLOBAL_FOCUS_OWNER] on java.awt.Dialog[Dialog-owner,100,24,100x100,invalid,hidden,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Dialog-owner
----------System.err:(7/354)----------
focus owner: java.awt.Button[button0,0,0,100x100,label=button]
focus owner: java.awt.Button[button0,0,0,100x100,label=button]
STATUS:Passed.
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  42 (X_SetInputFocus)
  Serial number of failed request:  1470
  Current serial number in output stream:  1471
result: Failed. Unexpected exit from test [exit code: 1]


test result: Failed. Unexpected exit from test [exit code: 1]

Comments
EVALUATION Fixed by the 6852051. Test passes with JDK7b104 on ubuntu10+compiz but fails with JDK7b60.
31-08-2010