Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8210787

Object.wait(long, int) throws inappropriate IllegalArgumentException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 12
    • None
    • core-libs
    • b12
    • Verified

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: