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

[macos] java/awt/Window/Grab/GrabTest.java: Press on the outside area didn't cause ungrab

    XMLWordPrintable

Details

    • b27
    • generic
    • os_x

    Backports

      Description

        The test java/awt/Window/Grab/GrabTest.java fails on macOS14.0 Darwin Kernel Version 23.0.0, macOS14.1 - 23.1.0 as follows:

        ====================8<--------------------
        #section:main
        ----------messages:(7/302)----------
        command: main GrabTest
        reason: User specified action: run main GrabTest
        started: Fri Sep 29 02:36:43 UTC 2023
        Mode: othervm
        Additional options from @modules: --add-modules java.desktop --add-exports java.desktop/sun.awt=ALL-UNNAMED
        finished: Fri Sep 29 02:36:45 UTC 2023
        elapsed time (seconds): 1.924
        ----------configuration:(4/97)----------
        Boot Layer
          add modules: java.desktop
          add exports: java.desktop/sun.awt ALL-UNNAMED

        ----------System.out:(7/740)----------
        java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Press,when=1695955004750,modifiers=Button1] on button0
        java.awt.event.MouseEvent[MOUSE_PRESSED,(150,150),absolute(550,250),button=1,modifiers=Button1,extModifiers=Button1,clickCount=1] on win0
        sun.awt.UngrabEvent[java.awt.Window[win0,400,100,300x300,layout=java.awt.FlowLayout]]
        java.awt.event.MouseEvent[MOUSE_PRESSED,(150,150),absolute(150,175),button=1,modifiers=Button1,extModifiers=Button1,clickCount=1] on frame0
        sun.awt.UngrabEvent[java.awt.Window[win0,400,100,300x300,layout=java.awt.FlowLayout]]
        sun.awt.UngrabEvent[java.awt.Window[win0,400,100,300x300,layout=java.awt.FlowLayout]]
        sun.awt.UngrabEvent[java.awt.Window[win0,400,100,300x300,invalid,hidden,layout=java.awt.FlowLayout]]
        ----------System.err:(14/707)----------
        Error: Frame can't be focused
        Failure: [6] Press on the outside area didn't cause ungrab
        java.lang.RuntimeException: Test failed.
        at GrabTest.test(GrabTest.java:239)
        at GrabTest.main(GrabTest.java:125)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1570)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed.
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed.
        ====================8<--------------------

        Reproducibility: 3 failures of 5 runs

        Steps to reproduce:
        $ jtreg -v -testjdk:$JAVA_HOME test/jdk/java/awt/Window/Grab/GrabTest.java

        The issue was observed on 22 on both x86-64 and aarch64
        The test successfully passed (5 success of 5 runs) on 17, 21

        Attachments

          Issue Links

            Activity

              People

                achung Alisen Chung
                vprovodin Vitaly Provodin
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: