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

JFrame.setDefaultCloseOperation is prohibited in jtreg

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None

      Description

      The test fails with the following stacktrace:

      Caused by: java.lang.SecurityException: System.exit() forbidden by JT Harness
      at com.sun.javatest.JavaTestSecurityManager.checkExit(JavaTestSecurityManager.java:117)
      at javax.swing.JFrame.setDefaultCloseOperation(java.desktop@9-ea/JFrame.java:390)
      at com.sun.swingset3.demos.progressbar.ProgressBarDemo.main(ProgressBarDemo.java:67)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mrkam Alexander Kuznetcov (Inactive)
              Reporter:
              mrkam Alexander Kuznetcov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: