ZoneOffset.ofHoursMinutesSeconds() does not reject invalid input

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • b134

        To validate ranges for minutes and seconds the following code is used:

                if (Math.abs(minutes) > 59) {
        ...
                if (Math.abs(seconds) > 59) {
        ...

        which fails when the argument is Integer.MIN_VALUE.

              Assignee:
              Ivan Gerasimov
              Reporter:
              Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: