RFR: 8171522: Jar prints error message with old (non gnu-style options).

Henry Jen henry.jen at oracle.com
Thu Feb 2 19:02:00 UTC 2017


Sorry, please ignore previous email, this one is correct.

diff -r 0e2935453091 src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties
--- a/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties      Wed Feb 01 11:05:33 2017 -0800
+++ b/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties      Thu Feb 02 11:00:36 2017 -0800
@@ -36,7 +36,7 @@
 error.bad.file.arg=\
      Error parsing file arguments
 error.bad.option=\
-        One of options -{ctxu} must be specified.
+        One of options -{ctxuid} must be specified.
 error.bad.cflag=\
         'c' flag requires manifest or input files to be specified!
 error.bad.uflag=\

Cheers,
Henry


> On Feb 2, 2017, at 10:58 AM, Henry Jen <henry.jen at oracle.com> wrote:
> 
> Hi,
> 
> Please review a trivial patch for JDK-8171522, basically we just add two missing main operations into the message. This message is appropriate for both compatible style or new gnu style.
> 
> Cheers,
> Henry
> 
> diff -r 0e2935453091 src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties
> --- a/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties      Wed Feb 01 11:05:33 2017 -0800
> +++ b/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties      Thu Feb 02 10:48:11 2017 -0800
> @@ -36,7 +36,7 @@
> error.bad.file.arg=\
>      Error parsing file arguments
> error.bad.option=\
> -        One of options -{ctxu} must be specified.
> +        One of the option -{ctxuid} must be specified.
> error.bad.cflag=\
>         'c' flag requires manifest or input files to be specified!
> error.bad.uflag=\



More information about the core-libs-dev mailing list