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

[macos13] java/awt/Frame/MaximizedToIconified/MaximizedToIconified.java: getExtendedState() != 6 as expected.

    XMLWordPrintable

Details

    • b04
    • generic
    • os_x

    Description

      The test java/awt/Frame/MaximizedToIconified/MaximizedToIconified.java became failing on both macOS-aarch64 and macOS-x64 starting since Ventura 13.0 Beta (22A5365d) with the following output:

      ```
      #section:main
      ----------messages:(7/279)----------
      command: main MaximizedToIconified
      reason: User specified action: run main MaximizedToIconified
      started: Wed Oct 12 04:13:38 UTC 2022
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      finished: Wed Oct 12 04:13:42 UTC 2022
      elapsed time (seconds): 3.873
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(11/452)----------
      last = 0; getOldState() = 0; getNewState() = 6
      state = 6; getExtendedState() = 6
      last = 6; getOldState() = 6; getNewState() = 0
      last = 0; getOldState() = 0; getNewState() = 1
      state = 1; getExtendedState() = 1
      last = 1; getOldState() = 1; getNewState() = 0
      state = 0; getExtendedState() = 0
      last = 0; getOldState() = 0; getNewState() = 1
      state = 1; getExtendedState() = 1
      last = 1; getOldState() = 1; getNewState() = 0
      state = 6; getExtendedState() = 0
      ----------System.err:(14/877)----------
      java.lang.RuntimeException: getExtendedState() != 6 as expected.
      at MaximizedToIconified.checkState(MaximizedToIconified.java:70)
      at MaximizedToIconified.examineStates(MaximizedToIconified.java:98)
      at MaximizedToIconified.doTest(MaximizedToIconified.java:117)
      at MaximizedToIconified.main(MaximizedToIconified.java:124)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1588)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: getExtendedState() != 6 as expected.
      ```
      It is still being observed on 13.1 Beta (22C5033e)
      The test passes successfully on the previous macOS versions 11, 12.
      The issue was observed on jdk20 20-ea+23-1677. It is also reproducible with jdk19 (19.0.1+10-21), jdk17

      *Reproducibility*: 100%
      *Steps to reproduce*:
      $ jtreg/bin/jtreg -va -testjdk:jdk-20.jdk/Contents/Home/ test/jdk/java/awt/Frame/MaximizedToIconified/MaximizedToIconified.java

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: