RFR: 8266239: Some duplicated javac command-line options have repeated effect

Guoxiong Li gli at openjdk.java.net
Fri May 28 12:36:27 UTC 2021


Hi all,

Some duplicated info options (`--version`, `--help`, `--help-extra`, `--help-lint`, `--full-version`) have repeated effect. Please see the following example.


$ javac -version -version
javac 17-internal
javac 17-internal


The patch fixes it and adds a corresponding test case.
Thank you for taking the time to review.

Best Regards,
-- Guoxiong

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

Commit messages:
 - 8266239: Some duplicated javac command-line options have repeated effect

Changes: https://git.openjdk.java.net/jdk/pull/4244/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4244&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8266239
  Stats: 41 lines in 3 files changed: 39 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4244.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4244/head:pull/4244

PR: https://git.openjdk.java.net/jdk/pull/4244


More information about the compiler-dev mailing list