On Tue, 2 Jul 2024 12:20:17 GMT, Yasumasa Suenaga <ysuen...@openjdk.org> wrote:

> We cannot pass GNU style options like `--enable-preview` to `jlink 
> --add-option`. It is hard to use for complex application.
> 
> We have workaround for this issue (see JBS), but I think it is better to fix 
> on JDK side.

The proposed fix is correct in my opinion, but there is a chance that user 
mistake could lead to missing of desired arguments.
https://github.com/openjdk/jdk/pull/22526 keeps the current behavior to error 
on ambiguous situation but allow user to explicitly express argument value with 
`=` or quote with multiple values as originally designed,

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19987#issuecomment-2515473883

Reply via email to