6605915: jinfo -flag <flag name> functionality doesn't work with core files
authorsla
Tue, 17 Dec 2013 08:07:02 +0100
changeset 22056 9b89b3033cdb
parent 22055 d9836bf9992a
child 22057 890596c090a9
6605915: jinfo -flag <flag name> functionality doesn't work with core files Reviewed-by: mchung, jbachorik
jdk/src/share/classes/sun/tools/jinfo/JInfo.java
--- a/jdk/src/share/classes/sun/tools/jinfo/JInfo.java	Fri Dec 13 13:34:55 2013 -0800
+++ b/jdk/src/share/classes/sun/tools/jinfo/JInfo.java	Tue Dec 17 08:07:02 2013 +0100
@@ -196,15 +196,17 @@
         if (usageSA) {
             System.err.println("    jinfo [option] <pid>");
             System.err.println("        (to connect to running process)");
-            System.err.println("    jinfo [option] <executable <core>");
+            System.err.println("    jinfo [option] <executable> <core>");
             System.err.println("        (to connect to a core file)");
             System.err.println("    jinfo [option] [server_id@]<remote server IP or hostname>");
             System.err.println("        (to connect to remote debug server)");
             System.err.println("");
             System.err.println("where <option> is one of:");
+            System.err.println("  for running processes:");
             System.err.println("    -flag <name>         to print the value of the named VM flag");
             System.err.println("    -flag [+|-]<name>    to enable or disable the named VM flag");
             System.err.println("    -flag <name>=<value> to set the named VM flag to the given value");
+            System.err.println("  for running processes and core files:");
             System.err.println("    -flags               to print VM flags");
             System.err.println("    -sysprops            to print Java system properties");
             System.err.println("    <no option>          to print both of the above");