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

java/awt/Focus/6981400/Test1.java fails

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7, 8, 9
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:

      Description

      fails with jdk1.8.0b117, jdk1.8.0b116 and jdk1.7.0_45b18

      ----------System.out:(22/6773)----------
      java.awt.event.WindowEvent[WINDOW_ACTIVATED,opposite=null,oldState=0,newState=0] on swing_frame
      sun.awt.TimedWindowEvent[WINDOW_GAINED_FOCUS,opposite=null,oldState=0,newState=0] on swing_frame
      java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on swing_frame
      java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on javax.swing.JButton[,0,0,384x161,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@25662c6f,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=button,defaultCapable=true]
      java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=[b0],cause=ACTIVATION] on javax.swing.JButton[,0,0,384x161,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@25662c6f,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=button,defaultCapable=true]
      sun.awt.TimedWindowEvent[WINDOW_LOST_FOCUS,opposite=Test1$1[base_frame,0,100,400x200,layout=java.awt.BorderLayout,title=base_frame,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,31,384x161,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true],oldState=0,newState=0] on swing_frame
      java.awt.event.WindowEvent[WINDOW_DEACTIVATED,opposite=Test1$1[base_frame,0,100,400x200,layout=java.awt.BorderLayout,title=base_frame,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,31,384x161,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true],oldState=0,newState=0] on swing_frame
      java.awt.event.WindowEvent[WINDOW_ACTIVATED,opposite=Test1$2[swing_frame,0,400,400x200,layout=java.awt.BorderLayout,title=swing_frame,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,31,384x161,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true],oldState=0,newState=0] on base_frame
      sun.awt.TimedWindowEvent[WINDOW_GAINED_FOCUS,opposite=Test1$2[swing_frame,0,400,400x200,layout=java.awt.BorderLayout,title=swing_frame,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,31,384x161,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true],oldState=0,newState=0] on base_frame
      java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on base_frame
      java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=javax.swing.JButton[,0,0,384x161,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@25662c6f,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=button,defaultCapable=true],cause=ACTIVATION] on [b0]

      Test case 1: swing frame

      java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=[b1],cause=TRAVERSAL_FORWARD] on [b0]
      java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=[b0],cause=TRAVERSAL_FORWARD] on [b1]
      java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=javax.swing.JButton[,0,0,384x161,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@25662c6f,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=button,defaultCapable=true],cause=ACTIVATION] on [b1]
      sun.awt.TimedWindowEvent[WINDOW_LOST_FOCUS,opposite=Test1$2[swing_frame,0,400,400x200,layout=java.awt.BorderLayout,title=swing_frame,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,31,384x161,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true],oldState=0,newState=0] on base_frame
      java.awt.event.WindowEvent[WINDOW_DEACTIVATED,opposite=Test1$2[swing_frame,0,400,400x200,layout=java.awt.BorderLayout,title=swing_frame,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,31,384x161,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true],oldState=0,newState=0] on base_frame
      java.awt.event.WindowEvent[WINDOW_ACTIVATED,opposite=Test1$1[base_frame,0,100,400x200,layout=java.awt.BorderLayout,title=base_frame,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,31,384x161,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true],oldState=0,newState=0] on swing_frame
      sun.awt.TimedWindowEvent[WINDOW_GAINED_FOCUS,opposite=Test1$1[base_frame,0,100,400x200,layout=java.awt.BorderLayout,title=base_frame,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,31,384x161,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true],oldState=0,newState=0] on swing_frame
      java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=[b1],cause=ACTIVATION] on javax.swing.JButton[,0,0,384x161,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@25662c6f,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=button,defaultCapable=true]
      ----------System.err:(14/802)----------
      java.lang.RuntimeException: Test failed: f0b3 is not a focus owner
      at Test1.test(Test1.java:180)
      at Test1.main(Test1.java:127)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:744)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed: f0b3 is not a focus owner
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed: f0b3 is not a focus owner
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed: f0b3 is not a focus owner


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed: f0b3 is not a focus owner

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              asakharu Aleksandr Sakharuk (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: