RFR: 8339561: The test/jdk/java/awt/Paint/ListRepaint.java may fail after JDK-8327401 [v3]
Alexey Ivanov
aivanov at openjdk.org
Wed Sep 11 08:05:09 UTC 2024
On Tue, 10 Sep 2024 16:47:34 GMT, Alexander Zvegintsev <azvegint at openjdk.org> 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
More information about the client-libs-dev
mailing list