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

test/java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowRetaining.java sometimes fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7
    • client-libs
    • None
    • generic
    • generic

      The test sometimes fails on linux-i586, Gnome/Metacity 2.24 with the current JDK 7 (~ b59):

      ----------System.out:(49/6460)----------
      WINDOW_ACTIVATED,opposite=null,oldState=0,newState=0 on <Other Frame>
      WINDOW_GAINED_FOCUS,opposite=null,oldState=0,newState=0 on <Other Frame>
      FOCUS_GAINED,permanent,opposite=null on <Other Frame>
      WINDOW_OPENED,opposite=null,oldState=0,newState=0 on <Other Frame>
      WINDOW_OPENED,opposite=null,oldState=0,newState=0 on <Test Frame>
      FOCUS_LOST,temporary,opposite=java.awt.Button[button0,103,30,91x23,label=Test Button 1] on <Other Frame>
      WINDOW_LOST_FOCUS,opposite=java.awt.Frame[frame1,800,100,400x100,layout=java.awt.FlowLayout,title=Test Frame,resizable,normal],oldState=0,newState=0 on <Other Frame>
      WINDOW_DEACTIVATED,opposite=java.awt.Frame[frame1,800,100,400x100,layout=java.awt.FlowLayout,title=Test Frame,resizable,normal],oldState=0,newState=0 on <Other Frame>
      WINDOW_ACTIVATED,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal],oldState=0,newState=0 on <Test Frame>
      WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal],oldState=0,newState=0 on <Test Frame>
      FOCUS_GAINED,permanent,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal] on <Test Button 1>
      WINDOW_OPENED,opposite=null,oldState=0,newState=0 on <Window 1>
      WINDOW_OPENED,opposite=null,oldState=0,newState=0 on <Window 2>
      FOCUS_LOST,temporary,opposite=java.awt.Button[button1,5,5,91x23,label=Test Button 2] on <Test Button 1>
      WINDOW_LOST_FOCUS,opposite=TestWindow[win0,800,200,204x33,layout=java.awt.FlowLayout],oldState=0,newState=0 on <Test Frame>
      WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[frame1,800,100,400x100,invalid,layout=java.awt.FlowLayout,title=Test Frame,resizable,normal],oldState=0,newState=0 on <Window 1>
      WINDOW_LOST_FOCUS,opposite=TestWindow[win1,800,300,204x33,layout=java.awt.FlowLayout],oldState=0,newState=0 on <Window 1>
      WINDOW_GAINED_FOCUS,opposite=TestWindow[win0,800,200,204x33,layout=java.awt.FlowLayout],oldState=0,newState=0 on <Window 2>
      FOCUS_GAINED,permanent,opposite=java.awt.Button[button0,103,30,91x23,label=Test Button 1] on <Test Button 3>
      FOCUS_LOST,temporary,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal] on <Test Button 3>
      WINDOW_LOST_FOCUS,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal],oldState=0,newState=0 on <Window 2>
      WINDOW_DEACTIVATED,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal],oldState=0,newState=0 on <Test Frame>
      WINDOW_ACTIVATED,opposite=java.awt.Frame[frame1,800,100,400x100,invalid,layout=java.awt.FlowLayout,title=Test Frame,resizable,normal],oldState=0,newState=0 on <Other Frame>
      WINDOW_GAINED_FOCUS,opposite=TestWindow[win1,800,300,204x33,layout=java.awt.FlowLayout],oldState=0,newState=0 on <Other Frame>
      FOCUS_GAINED,permanent,opposite=java.awt.Button[button2,5,5,91x23,label=Test Button 3] on <Other Frame>
      FOCUS_LOST,temporary,opposite=java.awt.Button[button2,5,5,91x23,label=Test Button 3] on <Other Frame>
      WINDOW_LOST_FOCUS,opposite=TestWindow[win1,800,300,204x33,layout=java.awt.FlowLayout],oldState=0,newState=0 on <Other Frame>
      WINDOW_DEACTIVATED,opposite=java.awt.Frame[frame1,800,100,400x100,invalid,layout=java.awt.FlowLayout,title=Test Frame,resizable,normal],oldState=0,newState=0 on <Other Frame>
      WINDOW_ACTIVATED,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal],oldState=0,newState=0 on <Test Frame>
      WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal],oldState=0,newState=0 on <Window 2>
      FOCUS_GAINED,permanent,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal] on <Test Button 3>
      FOCUS_LOST,temporary,opposite=java.awt.Button[button1,5,5,91x23,label=Test Button 2] on <Test Button 3>
      WINDOW_LOST_FOCUS,opposite=TestWindow[win0,800,200,204x33,layout=java.awt.FlowLayout],oldState=0,newState=0 on <Window 2>
      WINDOW_GAINED_FOCUS,opposite=TestWindow[win1,800,300,204x33,layout=java.awt.FlowLayout],oldState=0,newState=0 on <Window 1>
      FOCUS_GAINED,permanent,opposite=java.awt.Button[button2,5,5,91x23,label=Test Button 3] on <Test Button 2>
      FOCUS_LOST,temporary,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal] on <Test Button 2>
      WINDOW_LOST_FOCUS,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal],oldState=0,newState=0 on <Window 1>
      WINDOW_DEACTIVATED,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal],oldState=0,newState=0 on <Test Frame>
      WINDOW_ACTIVATED,opposite=java.awt.Frame[frame1,800,100,400x100,invalid,layout=java.awt.FlowLayout,title=Test Frame,resizable,normal],oldState=0,newState=0 on <Other Frame>
      WINDOW_GAINED_FOCUS,opposite=TestWindow[win0,800,200,204x33,layout=java.awt.FlowLayout],oldState=0,newState=0 on <Other Frame>
      FOCUS_GAINED,permanent,opposite=java.awt.Button[button1,5,5,91x23,label=Test Button 2] on <Other Frame>
      FOCUS_LOST,temporary,opposite=java.awt.Button[button1,5,5,91x23,label=Test Button 2] on <Other Frame>
      WINDOW_LOST_FOCUS,opposite=TestWindow[win0,800,200,204x33,layout=java.awt.FlowLayout],oldState=0,newState=0 on <Other Frame>
      WINDOW_DEACTIVATED,opposite=java.awt.Frame[frame1,800,100,400x100,invalid,layout=java.awt.FlowLayout,title=Test Frame,resizable,normal],oldState=0,newState=0 on <Other Frame>
      WINDOW_ACTIVATED,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal],oldState=0,newState=0 on <Test Frame>
      WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal],oldState=0,newState=0 on <Window 1>
      WINDOW_LOST_FOCUS,opposite=java.awt.Frame[frame1,800,100,400x100,invalid,layout=java.awt.FlowLayout,title=Test Frame,resizable,normal],oldState=0,newState=0 on <Window 1>
      WINDOW_GAINED_FOCUS,opposite=TestWindow[win0,800,200,204x33,layout=java.awt.FlowLayout],oldState=0,newState=0 on <Test Frame>
      FOCUS_GAINED,permanent,opposite=java.awt.Frame[frame0,800,400,400x100,layout=java.awt.BorderLayout,title=Other Frame,resizable,normal] on <Test Button 1>
      ----------System.err:(17/1200)----------
      java.lang.RuntimeException: Step 2: Test failed: actual focused window didn't get a focus
      at ActualFocusedWindowRetaining.stopTest(ActualFocusedWindowRetaining.java:196)
      at ActualFocusedWindowRetaining.clickOwnerCheckFocus(ActualFocusedWindowRetaining.java:160)
      at ActualFocusedWindowRetaining.test(ActualFocusedWindowRetaining.java:118)
      at ActualFocusedWindowRetaining.start(ActualFocusedWindowRetaining.java:105)
      at ActualFocusedWindowRetaining.main(ActualFocusedWindowRetaining.java:57)
      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)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Step 2: Test failed: actual focused window didn't get a focus
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Step 2: Test failed: actual focused window didn't get a focus
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Step 2: Test failed: actual focused window didn't get a focus


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Step 2: Test failed: actual focused window didn't get a focus

            Unassigned Unassigned
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: