8191707: Options with invalid values are incorrectly treated as obsolete and ignored
authordholmes
Fri, 24 Nov 2017 14:07:59 +0100
changeset 48109 eeac8b750f4a
parent 48108 9d00b6f9cbed
child 48111 27d388ff3a89
8191707: Options with invalid values are incorrectly treated as obsolete and ignored Reviewed-by: rehn, dcubed
src/hotspot/share/runtime/arguments.cpp
--- a/src/hotspot/share/runtime/arguments.cpp	Fri Nov 24 13:58:52 2017 +0100
+++ b/src/hotspot/share/runtime/arguments.cpp	Fri Nov 24 14:07:59 2017 +0100
@@ -497,7 +497,7 @@
   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;
       }