RFR: 8339561: The test/jdk/java/awt/Paint/ListRepaint.java may fail after JDK-8327401 [v3]

Alexander Zvegintsev azvegint at openjdk.org
Tue Sep 10 17:24:17 UTC 2024


On Tue, 10 Sep 2024 07:21:47 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Several tests modified by https://github.com/openjdk/jdk/pull/19339 have been tweaked, see inline comments.
>> 
>> Notes:
>>  * We have a few XXXRepaint.java tests and in this patch, I updated all of them to follow the change added to the ListRepaint.java
>> 
>> @azvegint @aivanov-jdk please take a look.
>
> 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.

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

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


More information about the client-libs-dev mailing list