test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/IntJVMOption.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
webrev Cdiff test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/IntJVMOption.java
test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/IntJVMOption.java
Print this page
*** 221,239 ****
* Add 1 as valid value if min is less than 1 and max is greater than 1
*/
validValues.add("1");
}
! if (max.compareTo(MAX_4_BYTE_INT_PLUS_ONE) == 1) {
/*
* Check for overflow when flag is assigned to the
* 4 byte int variable
*/
validValues.add(MAX_4_BYTE_INT_PLUS_ONE.toString());
}
! if (max.compareTo(MAX_4_BYTE_UNSIGNED_INT_PLUS_ONE) == 1) {
/*
* Check for overflow when flag is assigned to the
* 4 byte unsigned int variable
*/
validValues.add(MAX_4_BYTE_UNSIGNED_INT_PLUS_ONE.toString());
--- 221,239 ----
* Add 1 as valid value if min is less than 1 and max is greater than 1
*/
validValues.add("1");
}
! if ((min.compareTo(MAX_4_BYTE_INT_PLUS_ONE) == -1) && (max.compareTo(MAX_4_BYTE_INT_PLUS_ONE) == 1)) {
/*
* Check for overflow when flag is assigned to the
* 4 byte int variable
*/
validValues.add(MAX_4_BYTE_INT_PLUS_ONE.toString());
}
! if ((min.compareTo(MAX_4_BYTE_UNSIGNED_INT_PLUS_ONE) == -1) && (max.compareTo(MAX_4_BYTE_UNSIGNED_INT_PLUS_ONE) == 1)) {
/*
* Check for overflow when flag is assigned to the
* 4 byte unsigned int variable
*/
validValues.add(MAX_4_BYTE_UNSIGNED_INT_PLUS_ONE.toString());
test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/IntJVMOption.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File