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

java/awt/FullScreen/DisplayMode/DisplayModeNoRefreshTest/DisplayModeNoRefreshTest.java fails on MAC ARM

XMLWordPrintable

    • arm
    • os_x

      java/awt/FullScreen/DisplayMode/DisplayModeNoRefreshTest/DisplayModeNoRefreshTest.java fails on MAC ARM with the following exception
      Test Failed due to the following exception
      java.lang.IllegalArgumentException: Unable to set display mode!
      at java.desktop/sun.awt.CGraphicsDevice.nativeSetDisplayMode(Native Method)
      at java.desktop/sun.awt.CGraphicsDevice.setDisplayMode(CGraphicsDevice.java:334)
      at DisplayModeNoRefreshTest.<init>(DisplayModeNoRefreshTest.java:36)
      at DisplayModeNoRefreshTest.main(DisplayModeNoRefreshTest.java:78)
      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:127)
      at java.base/java.lang.Thread.run(Thread.java:1596)
      java.lang.RuntimeException: Test Failed due to java.lang.IllegalArgumentException: Unable to set display mode!
      at DisplayModeNoRefreshTest.<init>(DisplayModeNoRefreshTest.java:41)
      at DisplayModeNoRefreshTest.main(DisplayModeNoRefreshTest.java:78)
      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:127)
      at java.base/java.lang.Thread.run(Thread.java:1596)

      Tried the same test on MAC x86 host (MacBook Pro 13-inch, 2020, Four Thunderbolt 3 ports) & the test passes.

      I have attached the modified the test to check for gd.isDisplayChangeSupported() before calling gd.setDisplayMode(Mode); to make sure that Display Change is supported.

            kizune Alexander Zuev
            landrews Lawrence Andrews
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: