# HG changeset patch # User jjg # Date 1481831245 28800 # Node ID e5eee1c92be01632114566a37af8dfc1929b893e # Parent ae6d3b80c89c02066b9d48ac60cbc4e4b1060485 8170553: javac info options should match launcher options Reviewed-by: jlahoda diff -r ae6d3b80c89c -r e5eee1c92be0 langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Option.java --- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Option.java Wed Dec 14 18:30:56 2016 -0800 +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Option.java Thu Dec 15 11:47:25 2016 -0800 @@ -342,7 +342,7 @@ } }, - VERSION("-version", "opt.version", STANDARD, INFO) { + VERSION("--version -version", "opt.version", STANDARD, INFO) { @Override public void process(OptionHelper helper, String option) throws InvalidValueException { Log log = helper.getLog(); @@ -352,7 +352,7 @@ } }, - FULLVERSION("-fullversion", null, HIDDEN, INFO) { + FULLVERSION("--full-version -fullversion", null, HIDDEN, INFO) { @Override public void process(OptionHelper helper, String option) throws InvalidValueException { Log log = helper.getLog(); @@ -402,7 +402,7 @@ } }, - X("-X", "opt.X", STANDARD, INFO) { + X("--help-extra -X", "opt.X", STANDARD, INFO) { @Override public void process(OptionHelper helper, String option) throws InvalidValueException { Log log = helper.getLog(); diff -r ae6d3b80c89c -r e5eee1c92be0 langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/javac.properties --- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/javac.properties Wed Dec 14 18:30:56 2016 -0800 +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/javac.properties Thu Dec 15 11:47:25 2016 -0800 @@ -263,9 +263,9 @@ javac.opt.Xstdout=\ Redirect standard output javac.opt.X=\ - Print a synopsis of nonstandard options + Print help on extra options javac.opt.help=\ - Print a synopsis of standard options + Print this help message javac.opt.print=\ Print out a textual representation of specified types javac.opt.printRounds=\ @@ -375,7 +375,7 @@ use --help for a list of possible options javac.msg.usage.nonstandard.footer=\ -These options are non-standard and subject to change without notice. +These extra options are subject to change without notice. javac.msg.bug=\ An exception has occurred in the compiler ({0}). \