tools launcher test AddExportsAndOpensInManifest.java fails intermittently: AccessDeniedException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 10
    • Component/s: tools
    • b01

      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)

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

              Created:
              Updated:
              Resolved: