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

[TESTBUG] test/com/sun/java/swing/plaf/windows/8016551/bug8016551.java fails with agentvm mode

XMLWordPrintable

      test/com/sun/java/swing/plaf/windows/8016551/bug8016551.java fails with follwoing exception in agentvm mode.

      ----------System.err:(33/2049)----------
      java.lang.reflect.InvocationTargetException
      at java.awt.EventQueue.invokeAndWait(EventQueue.java:1300)
      at java.awt.EventQueue.invokeAndWait(EventQueue.java:1275)
      at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1350)
      at bug8016551.main(bug8016551.java:46)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:728)
      at java.lang.Thread.run(Thread.java:744)
      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(JFrame.java:395)
      at bug8016551$1.run(bug8016551.java:57)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
      at java.awt.EventQueue.access$400(EventQueue.java:97)
      at java.awt.EventQueue$3.run(EventQueue.java:697)
      at java.awt.EventQueue$3.run(EventQueue.java:691)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


      The test failure is observed in jdk8 ea build b119. The issue was most likely existed all the time. Test pass with othervm mode.

            serb Sergey Bylokhov
            bvaidya Balchandra Vaidya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: