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

jjs interactive mode fails to work with security manager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 9, 9-repo-jigsaw
    • core-libs
    • b89
    • generic
    • generic

    Backports

      Description

        /cygdrive/d/src/jake/build/windows-x86_64-normal-server-release/images/jdk/bin
        $ ./jjs -J-Djava.security.manager
        Exception in thread "main" java.security.AccessControlException: access denied ("java.util.PropertyPermission" "java.home" "read")
                at java.security.AccessControlContext.checkPermission(java.base@9.0/AccessControlContext.java:468)
                at java.security.AccessController.checkPermission(java.base@9.0/AccessController.java:894)
                at java.lang.SecurityManager.checkPermission(java.base@9.0/SecurityManager.java:541)
                at java.lang.SecurityManager.checkPropertyAccess(java.base@9.0/SecurityManager.java:1285)
                at java.lang.System.getProperty(java.base@9.0/System.java:748)
                at com.sun.tools.javac.file.Locations$SystemModulePathLocationHandler.<init>(jdk.compiler@9.0/Locations.java:1267)
                at com.sun.tools.javac.file.Locations.initHandlers(jdk.compiler@9.0/Locations.java:1384)
                at com.sun.tools.javac.file.Locations.<init>(jdk.compiler@9.0/Locations.java:129)
                at com.sun.tools.javac.file.BaseFileManager.createLocations(jdk.compiler@9.0/BaseFileManager.java:95)
                at com.sun.tools.javac.file.BaseFileManager.<init>(jdk.compiler@9.0/BaseFileManager.java:80)
                at com.sun.tools.javac.file.JavacFileManager.<init>(jdk.compiler@9.0/JavacFileManager.java:143)
                at com.sun.tools.javac.api.JavacTool.getStandardFileManager(jdk.compiler@9.0/JavacTool.java:98)
                at com.sun.tools.javac.api.JavacTool.getStandardFileManager(jdk.compiler@9.0/JavacTool.java:65)
                at jdk.nashorn.tools.jjs.PackagesHelper.<init>(jdk.scripting.nashorn.shell@9.0/PackagesHelper.java:76)
                at jdk.nashorn.tools.jjs.PropertiesHelper.<init>(jdk.scripting.nashorn.shell@9.0/PropertiesHelper.java:59)
                at jdk.nashorn.tools.jjs.Main.readEvalPrint(jdk.scripting.nashorn.shell@9.0/Main.java:109)
                at jdk.nashorn.tools.Shell.run(jdk.scripting.nashorn@9.0/Shell.java:161)
                at jdk.nashorn.tools.jjs.Main.main(jdk.scripting.nashorn.shell@9.0/Main.java:91)
                at jdk.nashorn.tools.jjs.Main.main(jdk.scripting.nashorn.shell@9.0/Main.java:67)

        Attachments

          Issue Links

            Activity

              People

                sundar Sundararajan Athijegannathan
                sundar Sundararajan Athijegannathan
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: