Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8083316 | emb-9 | Jesper Wilhelmsson | P2 | Resolved | Fixed | team |
Java not print "Unrecognized option: ...
Could not create the Java virtual machine" if random character set follow in some valid X option.
For example
"java -Xcomputer", "java -XproffessionalismOfOurEngineer", "java -XinterviewWithVampire", "java -XmixedVeryHardMixed!!!Oh!CanIDosomething?" is correct!
After those command java help is printed.
Example 2:
>java -XcompilationError!GameOver,Baby! -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, compiled mode, sharing)
But
"java -XfutureSSS" is incorrect. The next message will be print:
Unrecognized option: -XfutureSSS
Could not create the Java virtual machine."
Is it correct behavior?
It was checked on 1.5.0, 1.4.2 JDK versions.
Could not create the Java virtual machine" if random character set follow in some valid X option.
For example
"java -Xcomputer", "java -XproffessionalismOfOurEngineer", "java -XinterviewWithVampire", "java -XmixedVeryHardMixed!!!Oh!CanIDosomething?" is correct!
After those command java help is printed.
Example 2:
>java -XcompilationError!GameOver,Baby! -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, compiled mode, sharing)
But
"java -XfutureSSS" is incorrect. The next message will be print:
Unrecognized option: -XfutureSSS
Could not create the Java virtual machine."
Is it correct behavior?
It was checked on 1.5.0, 1.4.2 JDK versions.
- backported by
-
JDK-8083316 Java not print "Unrecognized option" when it is invalid option.
-
- Resolved
-
- duplicates
-
JDK-6816203 command-line processing of -Xfoo options is too lax
-
- Closed
-
- relates to
-
JDK-8067947 [TESTBUG] Regression test for JDK-6522873
-
- Resolved
-
-
JDK-6488866 java trailing options ignored when using options like -version, -X, -help (can be confusing)
-
- Closed
-