<AWT Dev> [12] Review Request: 8210231 Robot.delay() catches InterruptedException and prints stacktrace to stderr.
Phil Race
philip.race at oracle.com
Tue Oct 30 17:34:41 UTC 2018
> and the interrupted state of the thread is restored
Can you explain why you are doing this ?
Thread.sleep() clears the IE so why do you need to restore it ?
It just looks like an un-specified and un-needed change of behaviour to me.
-phil.
On 10/7/18 9:56 PM, Sergey Bylokhov wrote:
> Hello.
> Please review the fix for jdk12.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8210231
> Webrev: http://cr.openjdk.java.net/~serb/8210231/webrev.00
>
> The Robot.delay() is a simple wrapper on top of Thread.sleep(), which
> ignores the InterruptedException. But in case of InterruptedException
> it prints the stack trace, which is unspecified behavior.
>
> In the fix the "printStackTrace()" was removed, and the interrupted
> state of the thread is restored.
>
More information about the awt-dev
mailing list