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

jdk/internal/jrtfs/WithSecurityManager fails with exploded builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b17

      Description

      This is an issue only with exploded build.

      Please refer to the test output below:

      java.security.AccessControlException: access denied ("java.io.FilePermission" "/home/felix/jdk10/build/linux-x86_64-normal-server-release/jdk/modules" "read")
      at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
      at java.base/java.security.AccessController.checkPermission(AccessController.java:895)
      at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
      at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:897)
      at java.base/sun.nio.fs.UnixPath.checkRead(UnixPath.java:818)
      at java.base/sun.nio.fs.UnixFileSystemProvider.checkAccess(UnixFileSystemProvider.java:291)
      at java.base/java.nio.file.Files.notExists(Files.java:2477)
      at java.base/jdk.internal.jrtfs.SystemImage.open(SystemImage.java:76)
      at java.base/jdk.internal.jrtfs.JrtFileSystem.<init>(JrtFileSystem.java:90)
      at java.base/jdk.internal.jrtfs.JrtFileSystemProvider.newFileSystem(JrtFileSystemProvider.java:108)
      at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:344)
      at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:293)
      at WithSecurityManager.main(WithSecurityManager.java:65)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

        Attachments

          Activity

            People

            Assignee:
            xiaofeya Xiaofeng Yang
            Reporter:
            xiaofeya Xiaofeng Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: