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

java/lang/SecurityManager/CheckPackageAccess.java fail for unconsistent java.security file

    Details

      Description

      A DESCRIPTION OF THE PROBLEM :
      java/lang/SecurityManager/CheckPackageAccess.java got error "ACTION: main – Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: restricted packages are not consistent with java.security file"
      The reason is in file /jdk8u/build/linux-x86_64-normal-server-release/images/j2sdk-image/jre/lib/security/java.security package.access definition not consistent with jdk8u/jdk/test/java/lang/SecurityManager/CheckPackageAccess.java
      code " jspkgs.subList(index + 1, jspkgs.size()).clear();" will delete 3 packages in jspkgs which cause this failure

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. export JAVA_HOME=YOUR_DIR/jdk8u/build/linux-x86_64-normal-server-release/images/j2sdk-image/
      2. export PATH=YOUR_DIR/jdk8u/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin:$PATH
      3. run the failed case with jtreg, YOUR_DIR/jtreg/bin/jtreg YOUR_DIR/jdk8u/jdk/test/java/lang/SecurityManager/CheckPackageAccess.java

      ACTUAL -
      java/lang/SecurityManager/CheckPackageAccess.java got error "ACTION: main – Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: restricted packages are not consistent with java.security file"

      CUSTOMER SUBMITTED WORKAROUND :
      keep package.access definition same for jdk8u/jdk/test/java/lang/SecurityManager/CheckPackageAccess.java and /jdk8u/build/linux-x86_64-normal-server-release/images/j2sdk-image/jre/lib/security/java.security

        Attachments

          Activity

            People

            • Assignee:
              tvoniadka Thejasvi Voniadka
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: