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

Martin Buchholz martinrb at google.com
Sat Sep 15 14:33:57 UTC 2018


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