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

closed/javax/swing/JEditorPane/5076514/bug5076514.java fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 7
    • client-libs

      The test fails with JDK 7b72. The output:

      ----------System.err:(30/1805)----------
      java.lang.ExceptionInInitializerError
      at javax.swing.JComponent.repaint(JComponent.java:4780)
      at java.awt.Component.repaint(Component.java:3070)
      at javax.swing.text.JTextComponent.setEditable(JTextComponent.java:1810)
      at javax.swing.text.JTextComponent.<init>(JTextComponent.java:322)
      at javax.swing.JEditorPane.<init>(JEditorPane.java:199)
      at bug5076514.main(bug5076514.java:15)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:617)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:717)
      Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.awt")
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:345)
      at java.security.AccessController.checkPermission(AccessController.java:555)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
      at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1529)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:332)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:264)
      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:83)
      at javax.swing.RepaintManager.<clinit>(RepaintManager.java:201)
      ... 12 more

      JavaTest Message: Test threw exception: java.lang.ExceptionInInitializerError
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.ExceptionInInitializerError
      result: Failed. Execution failed: `main' threw exception: java.lang.ExceptionInInitializerError

            peterz Peter Zhelezniakov
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: