RFR: 8196657: [Testbug] TestOptionsWithRanges will fail for newly obsoleted flags that have not yet been removed

David Holmes david.holmes at oracle.com
Fri Feb 2 08:39:34 UTC 2018


bug: https://bugs.openjdk.java.net/browse/JDK-8196657
webrev: http://cr.openjdk.java.net/~dholmes/8196657/webrev/

TestOptionsWithRanges uses PrintFlags to get the set of flags to test, 
and then proceeds to give them valid and invalid values.

When we bump the JDK version and a flag is now considered obsolete (but 
has not yet been removed from the code) the flag is ignored (other than 
printing a warning) and so the tests with invalid values do not generate 
errors, and so those tests fail.

The fix is to simply watch for "Ignoring option xxx" in the stderr 
output and report success.

Pushing to jdk/jdk.

Thanks,
David


More information about the hotspot-runtime-dev mailing list