changeset 48222:6bc1de3b8c59

8191707: Options with invalid values are incorrectly treated as obsolete and ignored Reviewed-by: rehn, dcubed
author dholmes
date Fri, 24 Nov 2017 14:07:59 +0100
parents 6199dfaf72da
children 89deac44e515
files src/hotspot/share/runtime/arguments.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/runtime/arguments.cpp	Wed Nov 22 09:27:06 2017 -0800
+++ 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;
       }