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

java/awt/Focus/AppletInitialFocusTest/AppletInitialFocusTest1.java failed with "RuntimeException: Wrong focus owner: java.awt.Button[button1,41,36,56x23,label=Button1]"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 15, 16, 17
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows

      Description

      The following test failed in the JDK16 CI:

      java/awt/Focus/AppletInitialFocusTest/AppletInitialFocusTest1.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/225)----------
      command: main AppletInitialFocusTest1
      reason: Assumed action based on file name: run main AppletInitialFocusTest1
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 10.41
      ----------configuration:(3/43)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(2/125)----------
      focused = java.awt.Button[button0,102,36,56x23,label=Button2]
      focused = java.awt.Button[button1,41,36,56x23,label=Button1]
      ----------System.err:(13/982)----------
      java.lang.RuntimeException: Wrong focus owner: java.awt.Button[button1,41,36,56x23,label=Button1]
      at AppletInitialFocusTest1.main(AppletInitialFocusTest1.java:59)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Wrong focus owner: java.awt.Button[button1,41,36,56x23,label=Button1]
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Wrong focus owner: java.awt.Button[button1,41,36,56x23,label=Button1]
      ----------rerun:(46/4816)*----------

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: