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

java/nio/file/Files/CheckPermissions.java fails with AccessDeniedException in FileOwnerAttributeView test

XMLWordPrintable

    • x86_64
    • windows_8

      ATR JDK20 b27

      ----------messages:(6/305)----------
      command: main -Djava.security.manager=allow CheckPermissions
      reason: User specified action: run main/othervm -Djava.security.manager=allow CheckPermissions
      started: Wed Jan 04 13:47:44 ICT 2023
      Mode: othervm [/othervm specified]
      finished: Wed Jan 04 13:47:44 ICT 2023
      elapsed time (seconds): 0.281
      ----------configuration:(0/0)----------
      ----------System.out:(2/69)----------
      SecureDirectoryStream not tested
      PosixFileAttributeView not tested
      ----------System.err:(20/1759)*----------
      WARNING: A terminally deprecated method in java.lang.System has been called
      WARNING: System::setSecurityManager has been called by CheckPermissions$LoggingSecurityManager (file:/C:/Corelibs/results/JTwork/classes/java/nio/file/Files/CheckPermissions.d/)
      WARNING: Please consider reporting this to the maintainers of CheckPermissions$LoggingSecurityManager
      WARNING: System::setSecurityManager will be removed in a future release
      java.nio.file.AccessDeniedException: C:\\Corelibs\\results\\JTwork\\java\\nio\\file\\Files\\CheckPermissions\\.\\file1234
      at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
      at java.base/sun.nio.fs.WindowsAclFileAttributeView.setOwner(WindowsAclFileAttributeView.java:194)
      at java.base/sun.nio.fs.FileOwnerAttributeViewImpl.setOwner(FileOwnerAttributeViewImpl.java:102)
      at CheckPermissions.main(CheckPermissions.java:702)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1623)

      JavaTest Message: Test threw exception: java.nio.file.AccessDeniedException: C:\\Corelibs\\results\\JTwork\\java\\nio\\file\\Files\\CheckPermissions\\.\\file1234
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.nio.file.AccessDeniedException: C:\\Corelibs\\results\\JTwork\\java\\nio\\file\\Files\\CheckPermissions\\.\\file1234
      ----------rerun:(31/2215)*----------

            msheppar Mark Sheppard
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: