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

tools launcher test AddExportsAndOpensInManifest.java fails intermittently: AccessDeniedException

    XMLWordPrintable

    Details

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

      Description

      tools/launcher/modules/addexports/manifest/AddExportsAndOpensInManifest.java fails intermittently:

      test AddExportsAndOpensInManifest.testWithBadModuleOrPackage(): failure
      java.nio.file.AccessDeniedException: test.jar
      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.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:231)
      at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
      at java.base/java.nio.file.Files.newOutputStream(Files.java:218)
      at JarUtils.createJarFile(JarUtils.java:74)
      at AddExportsAndOpensInManifest.runTest(AddExportsAndOpensInManifest.java:74)
      at AddExportsAndOpensInManifest.runExpectingFail(AddExportsAndOpensInManifest.java:97)
      at AddExportsAndOpensInManifest.testWithBadModuleOrPackage(AddExportsAndOpensInManifest.java:165)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              anazarov Andrey Nazarov (Inactive)
              Reporter:
              amlu Amy Lu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: