jlink's compression plugin doesn't handle -c option correctly

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 21
    • Component/s: tools

      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.

            Assignee:
            Ana-Maria Mihalceanu
            Reporter:
            Ron Pressler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: