Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8239520 ValueRange.of(long, long, long) does not throw IAE on invalid inputs
  3. JDK-8239882

Release Note: ValueRange.of(long, long, long) Does Not Throw IAE on Invalid Inputs

XMLWordPrintable

    • generic
    • generic
    • Verified

      ```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.

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: