JDK-8210787 : Object.wait(long, int) throws inappropriate IllegalArgumentException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2018-09-15
  • Updated: 2022-10-26
  • Resolved: 2018-09-15
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 12
12 b12Fixed
Related Reports
Duplicate :  
Relates :  
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.
Comments
URL: http://hg.openjdk.java.net/jdk/jdk/rev/6c956c883137 User: igerasim Date: 2018-09-15 20:52:01 +0000
15-09-2018