RFR 8210787 : Object.wait(long, int) throws inappropriate IllegalArgumentException

Roger Riggs Roger.Riggs at Oracle.com
Sat Sep 15 15:35:13 UTC 2018


+1

On 9/15/2018 10:33 AM, Martin Buchholz wrote:
> Looks good!
>
> On Fri, Sep 14, 2018 at 10:44 PM, Ivan Gerasimov
> <ivan.gerasimov at oracle.com> wrote:
>> Hello!
>>
>> This is inspired by a recent fix for JDK- 8210004 (Thread.sleep(millis,
>> nanos) timeout returns early).
>>
>> Currently, Object.wait(Long.MAX_VALUE, 1) would throw
>> "IllegalArgumentException: timeout value is negative", which is not
>> accurate.
>>
>> Would you please help review the fix?
>>
>> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8210787
>> WEBREV: http://cr.openjdk.java.net/~igerasim/8210787/00/webrev/
>>
>> --
>> With kind regards,
>> Ivan Gerasimov
>>



More information about the core-libs-dev mailing list