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

java.util.jar.Packer.newPacker and newUnpacker fails when running with security manager

    Details

    • Subcomponent:
    • Resolved In Build:
      b169
    • Verification:
      Verified

      Backports

        Description

        xception in thread "main" java.lang.ExceptionInInitializerError
        at java.base/com.sun.java.util.jar.pack.TLGlobals.<init>(TLGlobals.java:79)
        at java.base/com.sun.java.util.jar.pack.PackerImpl.<init>(PackerImpl.java:65)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:487)
        at java.base/java.lang.Class.newInstance(Class.java:557)
        at java.base/java.util.jar.Pack200.newInstance(Pack200.java:708)
        at java.base/java.util.jar.Pack200.newPacker(Pack200.java:132)
        at Basic.main(Basic.java:36)
        Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "com.sun.java.util.jar.pack.disable.native" "read")
        at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:471)
        at java.base/java.security.AccessController.checkPermission(AccessController.java:894)
        at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
        at java.base/java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
        at java.base/java.lang.System.getProperty(System.java:763)
        at java.base/java.lang.Boolean.getBoolean(Boolean.java:265)
        at java.base/com.sun.java.util.jar.pack.PropMap.<clinit>(PropMap.java:66)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mchung Mandy Chung
                  Reporter:
                  mchung Mandy Chung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: