On Tue, 10 Sep 2024 16:47:34 GMT, Alexander Zvegintsev <[email protected]> 
wrote:

>> Sergey Bylokhov has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   Update bug4490179.java
>
> test/jdk/javax/swing/JButton/bug4490179.java line 86:
> 
>> 84:             robot.mousePress(InputEvent.BUTTON3_DOWN_MASK);
>> 85:             robot.mouseRelease(InputEvent.BUTTON3_DOWN_MASK);
>> 86:             if (anyButton.await(3, TimeUnit.SECONDS)) {
> 
> `await` is also throws the `InterruptedException`, so theoretically we can 
> leave the mouse button pressed in this case.

`await` throws `InterruptedException` when the thread is interrupted; the main 
thread is never interrupted in the test, therefore `InterruptedException` is 
never thrown.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/20861#discussion_r1753503239

Reply via email to