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

jdk/test/java/lang/SecurityManager/CheckPackageAccess.java failed after u141

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u141
    • security-libs

      test command:
      $jtreg jdk8u-master/jdk/test/java/lang/SecurityManager/CheckPackageAccess.java

      result:
      java.lang.RuntimeException: restricted packages are not consistent with java.security file
              at CheckPackageAccess.main(CheckPackageAccess.java:126)
              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:498)
              at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
              at java.lang.Thread.run(Thread.java:748)

      Related commit of u141: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/b3e7354e6ae8

      A simple fix by guoge1@huawei.com:

      diff -r 0c14af84f624 test/java/lang/SecurityManager/CheckPackageAccess.java
      --- a/test/java/lang/SecurityManager/CheckPackageAccess.java Fri Jul 14 07:29:12 2017 +0100
      +++ b/test/java/lang/SecurityManager/CheckPackageAccess.java Wed Jul 26 12:00:48 2017 +0800
      @@ -74,6 +74,8 @@
               "com.sun.org.apache.xalan.internal.xsltc.trax.",
               "com.sun.org.apache.xalan.internal.xsltc.util.",
               "com.sun.org.apache.xml.internal.res.",
      + "com.sun.org.apache.xml.internal.resolver.helpers.",
      + "com.sun.org.apache.xml.internal.resolver.readers.",
               "com.sun.org.apache.xml.internal.security.",
               "com.sun.org.apache.xml.internal.serializer.utils.",
               "com.sun.org.apache.xml.internal.utils.",

            fyang Fei Yang
            fyang Fei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: