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

Object.wait(ms, ns) timeout returns early

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 9
    • core-libs
    • b42

    Backports

      Description

        java.lang.Object.wait(long timeout, int nanos) implementation incorrectly rounds up to milliseconds.
        Since the resolution of Object.wait(ms) is only milliseconds, a nanos value less than or equal to 999999 should result in a full extra millisecond.

        Attachments

          Issue Links

            Activity

              People

                rriggs Roger Riggs
                rriggs Roger Riggs
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: