JDK-8065372 : Object.wait(ms, ns) timeout returns early
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-11-19
  • Updated: 2018-09-15
  • Resolved: 2014-11-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60Fixed 9 b42Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
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.
Comments
Should be backported to 8u40. It is the probable cause of: JDK-8064932 java/lang/ProcessBuilder/Basic.java: waitFor didn't take long enough
12-12-2014