8191707: Options with invalid values are incorrectly treated as obsolete and ignored

Reviewed-by: rehn, dcubed
This commit is contained in:
David Holmes 2017-11-24 14:07:59 +01:00
parent 2142e55df1
commit e6056f2e91

View File

@ -497,7 +497,7 @@ bool Arguments::is_obsolete_flag(const char *flag_name, JDK_Version* version) {
SpecialFlag flag;
if (lookup_special_flag(flag_name, flag)) {
if (!flag.obsolete_in.is_undefined()) {
if (version_less_than(JDK_Version::current(), flag.expired_in)) {
if (!version_less_than(JDK_Version::current(), flag.obsolete_in)) {
*version = flag.obsolete_in;
return true;
}