Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6854389

test/java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8-pool
    • 7
    • client-libs
    • None
    • generic
    • linux

      The test fails on Gnome/Compiz 2.24/0.7.8 on linux-i586 with JDK7 (~b59):

      ----------System.out:(53/7376)----------
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=null,oldState=0,newState=0] on OWNER_FRAME
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on Frame_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Window_Button,cause=ACTIVATION] on Frame_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Window[OWNED_WINDOW,100,200,400x150,layout=java.awt.FlowLayout],oldState=0,newState=0] on OWNER_FRAME
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[OWNER_FRAME,100,24,400x150,invalid,layout=java.awt.FlowLayout,title=Owner Frame,resizable,normal],oldState=0,newState=0] on OWNED_WINDOW
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Frame_Button,cause=ACTIVATION] on Window_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Auxiliary_Button,cause=ACTIVATION] on Window_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Frame[AUX_FRAME,100,400,400x150,layout=java.awt.FlowLayout,title=Auxiliary Frame,resizable,normal],oldState=0,newState=0] on OWNED_WINDOW
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Window[OWNED_WINDOW,100,200,400x150,layout=java.awt.FlowLayout],oldState=0,newState=0] on AUX_FRAME
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Window_Button,cause=ACTIVATION] on Auxiliary_Button

      Test started:

      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Window_Button,cause=ACTIVATION] on Auxiliary_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Window[OWNED_WINDOW,100,200,400x150,layout=java.awt.FlowLayout],oldState=0,newState=0] on AUX_FRAME
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[AUX_FRAME,100,400,400x150,layout=java.awt.FlowLayout,title=Auxiliary Frame,resizable,normal],oldState=0,newState=0] on OWNED_WINDOW
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Auxiliary_Button,cause=ACTIVATION] on Window_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Auxiliary_Button,cause=ACTIVATION] on Window_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Frame[AUX_FRAME,100,400,400x150,layout=java.awt.FlowLayout,title=Auxiliary Frame,resizable,normal],oldState=0,newState=0] on OWNED_WINDOW
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Window[OWNED_WINDOW,100,200,400x150,layout=java.awt.FlowLayout],oldState=0,newState=0] on AUX_FRAME
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Window_Button,cause=ACTIVATION] on Auxiliary_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Frame_Button,cause=ACTIVATION] on Auxiliary_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Frame[OWNER_FRAME,100,24,400x150,invalid,layout=java.awt.FlowLayout,title=Owner Frame,resizable,normal],oldState=0,newState=0] on AUX_FRAME
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[AUX_FRAME,100,400,400x150,layout=java.awt.FlowLayout,title=Auxiliary Frame,resizable,normal],oldState=0,newState=0] on OWNER_FRAME
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Auxiliary_Button,cause=ACTIVATION] on Frame_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Window_Button,cause=ACTIVATION] on Frame_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Window[OWNED_WINDOW,100,200,400x150,layout=java.awt.FlowLayout],oldState=0,newState=0] on OWNER_FRAME
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[OWNER_FRAME,100,24,400x150,invalid,layout=java.awt.FlowLayout,title=Owner Frame,resizable,normal],oldState=0,newState=0] on OWNED_WINDOW
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Frame_Button,cause=ACTIVATION] on Window_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Auxiliary_Button,cause=ACTIVATION] on Window_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Frame[AUX_FRAME,100,400,400x150,layout=java.awt.FlowLayout,title=Auxiliary Frame,resizable,normal],oldState=0,newState=0] on OWNED_WINDOW
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Window[OWNED_WINDOW,100,200,400x150,layout=java.awt.FlowLayout],oldState=0,newState=0] on AUX_FRAME
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Window_Button,cause=ACTIVATION] on Auxiliary_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Frame_Button,cause=ACTIVATION] on Auxiliary_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Frame[OWNER_FRAME,100,24,400x150,invalid,layout=java.awt.FlowLayout,title=Owner Frame,resizable,normal],oldState=0,newState=0] on AUX_FRAME
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[AUX_FRAME,100,400,400x150,layout=java.awt.FlowLayout,title=Auxiliary Frame,resizable,normal],oldState=0,newState=0] on OWNER_FRAME
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Auxiliary_Button,cause=ACTIVATION] on Frame_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Window_Button,cause=ACTIVATION] on Frame_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Window[OWNED_WINDOW,100,200,400x150,layout=java.awt.FlowLayout],oldState=0,newState=0] on OWNER_FRAME
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[OWNER_FRAME,100,24,400x150,invalid,layout=java.awt.FlowLayout,title=Owner Frame,resizable,normal],oldState=0,newState=0] on OWNED_WINDOW
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Frame_Button,cause=ACTIVATION] on Window_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Auxiliary_Button,cause=ACTIVATION] on Window_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Frame[AUX_FRAME,100,400,400x150,layout=java.awt.FlowLayout,title=Auxiliary Frame,resizable,normal],oldState=0,newState=0] on OWNED_WINDOW
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Window[OWNED_WINDOW,100,200,400x150,layout=java.awt.FlowLayout],oldState=0,newState=0] on AUX_FRAME
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Window_Button,cause=ACTIVATION] on Auxiliary_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Window_Button,cause=ACTIVATION] on Auxiliary_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Window[OWNED_WINDOW,100,200,400x150,layout=java.awt.FlowLayout],oldState=0,newState=0] on AUX_FRAME
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[AUX_FRAME,100,400,400x150,layout=java.awt.FlowLayout,title=Auxiliary Frame,resizable,normal],oldState=0,newState=0] on OWNER_FRAME
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Auxiliary_Button,cause=ACTIVATION] on Frame_Button
      --> java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=Auxiliary_Button,cause=ACTIVATION] on Frame_Button
      --> java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Frame[AUX_FRAME,100,400,400x150,layout=java.awt.FlowLayout,title=Auxiliary Frame,resizable,normal],oldState=0,newState=0] on OWNER_FRAME
      --> java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[OWNER_FRAME,100,24,400x150,invalid,layout=java.awt.FlowLayout,title=Owner Frame,resizable,normal],oldState=0,newState=0] on AUX_FRAME
      --> java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=Frame_Button,cause=ACTIVATION] on Auxiliary_Button
      ----------System.err:(14/1153)----------
      ActualFocusedWindowBlockingTest$TestFailedException: Test failed: The owner's component [Frame_Button] couldn't be focused as the most recent focus owner
      at ActualFocusedWindowBlockingTest.start(ActualFocusedWindowBlockingTest.java:113)
      at ActualFocusedWindowBlockingTest.main(ActualFocusedWindowBlockingTest.java:54)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:717)

            bagiras Oleg Pekhovskiy (Inactive)
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: