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

Object.wait(ms, ns) timeout returns early

XMLWordPrintable

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

        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.

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

                Created:
                Updated:
                Resolved: