mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8191707: Options with invalid values are incorrectly treated as obsolete and ignored
Reviewed-by: rehn, dcubed
This commit is contained in:
parent
e0ae6483a2
commit
50f5bcbc03
1 changed files with 1 additions and 1 deletions
|
@ -497,7 +497,7 @@ bool Arguments::is_obsolete_flag(const char *flag_name, JDK_Version* version) {
|
||||||
SpecialFlag flag;
|
SpecialFlag flag;
|
||||||
if (lookup_special_flag(flag_name, flag)) {
|
if (lookup_special_flag(flag_name, flag)) {
|
||||||
if (!flag.obsolete_in.is_undefined()) {
|
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;
|
*version = flag.obsolete_in;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue