Object.wait(long, int) throws inappropriate IllegalArgumentException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 12
    • Affects Version/s: None
    • Component/s: core-libs
    • b12
    • Verified

      In an extreme case of obj.wait(Long.MAX_VALUE, nanos) with nanos > 0 it throws "IllegalArgumentException: timeout value is negative" due to the long integer overflow.

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

              Created:
              Updated:
              Resolved: