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

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: