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.

Hello @YaSuenag, I haven't had a chance to build your change locally and try it 
myself, but I suspect this change isn't enough to address the issue. Does this 
change allow for:


jlink ... --add-options --add-exports java.base/jdk.internal.misc=ALL-UNNAMED

to work correctly and have the `--add-exports 
java.base/jdk.internal.misc=ALL-UNNAMED` be considered as the option value for 
`--add-options`.

Additionally, do the current tests pass with your proposed change?

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

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

Reply via email to