jlink's man page describes only the old --compress option values, which have been deprecated by https://bugs.openjdk.org/browse/JDK-8301124.
`jlink` supports specifying compression level via `-c` or `--compress` option.
Expected behavior is:
- when an user provides `-c {0|1|2}` to `jlink`, then the tool should process it as when receiving `--compress={0|1|2}`. As these values are now deprecated, a warning should be issued to the end user.
- when an user provides `-c zip-[0-9]` to `jlink`, then the tool should process it as when receiving `--compress=zip-[0-9]`.
- when no compression level is given, meaning the `jlink` command does not contain either `-c` or `--compress` with a value, the default level selected is `zip-6`.
The above describe behavior should be reflected in the description of the option (`--compress`), but also when listing the plugins (`--list-plugins`).
Accordingly the man page of `jlink` should reflect all these behaviors.
`jlink` supports specifying compression level via `-c` or `--compress` option.
Expected behavior is:
- when an user provides `-c {0|1|2}` to `jlink`, then the tool should process it as when receiving `--compress={0|1|2}`. As these values are now deprecated, a warning should be issued to the end user.
- when an user provides `-c zip-[0-9]` to `jlink`, then the tool should process it as when receiving `--compress=zip-[0-9]`.
- when no compression level is given, meaning the `jlink` command does not contain either `-c` or `--compress` with a value, the default level selected is `zip-6`.
The above describe behavior should be reflected in the description of the option (`--compress`), but also when listing the plugins (`--list-plugins`).
Accordingly the man page of `jlink` should reflect all these behaviors.
- csr for
-
JDK-8372570 jlink's compression plugin doesn't handle -c option correctly
-
- Draft
-
- relates to
-
JDK-8321138 jlink's online help for --compress is incorrect
-
- Open
-
-
JDK-8301124 Align jlink's --compress option with jmod's --compress option
-
- Closed
-
- links to
-
Review(master)
openjdk/jdk/28359