HotSpot ignores extra characters (junk) at the end of -X command-line options that do not expect an argument (or 'tail'). For example, -Xcomp, -Xcompileeverything, -Xcompletelyignoredtheextrajunk are all treated the same as -Xcomp. This caused real-world confusion when someone tried to use the option -Xcompressedrefs.
- duplicates
-
JDK-6893308 The error handling for -X options should be improved
-
- Closed
-
-
JDK-6522873 Java not print "Unrecognized option" when it is invalid option.
-
- Closed
-