-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
-
x86_64
-
windows_10
ADDITIONAL SYSTEM INFORMATION :
Microsoft Windows [Version 10.0.19045.2788]
openjdk version "20" 2023-03-21
OpenJDK Runtime Environment Zulu20.28+85-CA (build 20+36)
OpenJDK 64-Bit Server VM Zulu20.28+85-CA (build 20+36, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
If a user invokes jlink with a launcher name that happens to match an existing file or directory excluding the launcher, then the user will get a misleading error message. For example, if one attempts to create a launcher called "server", the operation fails with the following error message:
Error: jdk.tools.jlink.plugin.PluginException: java.nio.file.AccessDeniedException: output-directory\bin\server
Microsoft Windows [Version 10.0.19045.2788]
openjdk version "20" 2023-03-21
OpenJDK Runtime Environment Zulu20.28+85-CA (build 20+36)
OpenJDK 64-Bit Server VM Zulu20.28+85-CA (build 20+36, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
If a user invokes jlink with a launcher name that happens to match an existing file or directory excluding the launcher, then the user will get a misleading error message. For example, if one attempts to create a launcher called "server", the operation fails with the following error message:
Error: jdk.tools.jlink.plugin.PluginException: java.nio.file.AccessDeniedException: output-directory\bin\server