JDK-8239882 : Release Note: ValueRange.of(long, long, long) Does Not Throw IAE on Invalid Inputs
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.time
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • OS: generic
  • CPU: generic
  • Submitted: 2020-02-24
  • Updated: 2021-05-14
  • Resolved: 2020-08-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15
15Resolved
Related Reports
Duplicate :  
Description
```java.time.temporal.ValueRange.of()``` methods are now correctly throwing an InvalidArgumentException on given invalid arguments. For example, ```of(5, 2, 10)``` which is invalid because the ```minimum``` is greater than the ```smallest maximum```, now throws the exception.