Relates :
|
|
Relates :
|
Section 1.9 verifies malformed unlocked flag, but actually flags are locked, because '-XX:-UnlockDiagnosticVMOptions' is passed instead of '-XX:+UnlockDiagnosticVMOptions' and '-XX:-UnlockExperimentalVMOptions' instead of '-XX:+UnlockExperimentalVMOptions'. I.e. test performs the same thing as in section 1.8. /* #1.9 malformed unlocked flag: diagnostic & locked experimental & locked -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:PrintInlining -XX:AlwaysSafeConstructors -IgnoreUnrecognizedVMOptions ERR ERR +IgnoreUnrecognizedVMOptions ERR ERR */ runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:PrintInlining", "-version"); runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:AlwaysSafeConstructors", "-version"); runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:PrintInlining", "-version"); runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:AlwaysSafeConstructors", "-version");