-
Bug
-
Resolution: Duplicate
-
P4
-
20
Reproduce:
The bug can be reproduced on Linux if /tmp is a symbolic link directory.
Symptom:
```
stderr: [WARNING: A command line option has enabled the Security Manager
WARNING: The Security Manager is deprecated and will be removed in a future release
Exception in thread "main" java.nio.file.FileAlreadyExistsException: /tmp
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:438)
at java.base/java.nio.file.Files.createDirectory(Files.java:699)
at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:806)
at java.base/java.nio.file.Files.createDirectories(Files.java:752)
at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:72)
at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:106)
at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:131)
at ProtectionDomainCacheTest$Test.main(ProtectionDomainCacheTest.java:79)
]
exitValue = 1
java.lang.RuntimeException: 'PD in set is not alive' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
at ProtectionDomainCacheTest.main(ProtectionDomainCacheTest.java:111)
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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
```
The bug can be reproduced on Linux if /tmp is a symbolic link directory.
Symptom:
```
stderr: [WARNING: A command line option has enabled the Security Manager
WARNING: The Security Manager is deprecated and will be removed in a future release
Exception in thread "main" java.nio.file.FileAlreadyExistsException: /tmp
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:438)
at java.base/java.nio.file.Files.createDirectory(Files.java:699)
at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:806)
at java.base/java.nio.file.Files.createDirectories(Files.java:752)
at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:72)
at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:106)
at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:131)
at ProtectionDomainCacheTest$Test.main(ProtectionDomainCacheTest.java:79)
]
exitValue = 1
java.lang.RuntimeException: 'PD in set is not alive' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
at ProtectionDomainCacheTest.main(ProtectionDomainCacheTest.java:111)
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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
```
- duplicates
-
JDK-8294193 Files.createDirectories throws FileAlreadyExistsException for a symbolic link whose target is an existing directory
- Resolved
- is blocked by
-
JDK-8294193 Files.createDirectories throws FileAlreadyExistsException for a symbolic link whose target is an existing directory
- Resolved
- links to
-
Review openjdk/jdk/10266