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

Object.wait(ms, ns) timeout returns early

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: