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

MaximizedByPlatform: Maximized state was not set for frame in setVisible

XMLWordPrintable

    • 2d
    • x86_64
    • os_x
    • Verified

      The test java/awt/Frame/MaximizedByPlatform/MaximizedByPlatform.java fails with the following output :

      #section:main
      ----------messages:(5/200)----------
      command: main MaximizedByPlatform
      reason: User specified action: run main MaximizedByPlatform
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 0.776
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(14/922)----------
      metalEnabled=1
      java.lang.RuntimeException: Maximized state was not set for frame in setVisible
      at MaximizedByPlatform.main(MaximizedByPlatform.java:89)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      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:832)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Maximized state was not set for frame in setVisible
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Maximized state was not set for frame in setVisible
      The failure was not observed on OpenJDK the builds jdk-14-ea+33_osx-x64, jdk-15-ea+7_osx-x64

      The reproducibility: 100%
      Steps to reproduce:
      $ jtreg -Dsun.java2d.metal=true -testjdk:[path_to_lanai_home] test/jdk/java/awt/Frame/MaximizedByPlatform/MaximizedByPlatform.java

            aghaisas Ajit Ghaisas
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: