java/awt/Focus/InitialFocusTest/InitialFocusTest1.java failed with Wrong focus owner

XMLWordPrintable

    • b17
    • x86_64
    • windows

        The following test failed in the JDK26 CI:

        java/awt/Focus/InitialFocusTest/InitialFocusTest1.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(8/311)----------
        command: main InitialFocusTest1
        reason: Assumed action based on file name: run main InitialFocusTest1
        started: Tue Sep 16 18:25:30 UTC 2025
        Mode: othervm
        Additional options from @modules: --add-modules java.desktop
        Process id: 7728
        finished: Tue Sep 16 18:25:40 UTC 2025
        elapsed time (seconds): 10.373
        ----------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:(11/780)----------
        java.lang.RuntimeException: Wrong focus owner: java.awt.Button[button1,41,36,56x23,label=Button1]
        at InitialFocusTest1.main(InitialFocusTest1.java:59)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:565)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1474)

        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:(49/5678)*----------

              Assignee:
              Prasanta Sadhukhan
              Reporter:
              Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: