https://hg.openjdk.java.net/jdk/jdk/rev/95e8aba3b047
Adds usage printing when parameter parsing is broken. However, it doesn't account for the valid "all" suboption.
liveopt = "-live";
} else if (subopt.startsWith("file=")) {
filename = parseFileName(subopt);
+ } else if (subopt.equals("format=b")) {
+ // ignore format (not needed at this time)
+ } else {
+ System.err.println("Fail: invalid option: '" + subopt + "'");
+ usage(1);
}
}
Adds usage printing when parameter parsing is broken. However, it doesn't account for the valid "all" suboption.
liveopt = "-live";
} else if (subopt.startsWith("file=")) {
filename = parseFileName(subopt);
+ } else if (subopt.equals("format=b")) {
+ // ignore format (not needed at this time)
+ } else {
+ System.err.println("Fail: invalid option: '" + subopt + "'");
+ usage(1);
}
}
- relates to
-
JDK-8251374 jmap -dump could accept invalid options
- Resolved