RFR: 8306137: Open source several AWT ScrollPane related tests

Tejesh R tr at openjdk.org
Mon Apr 24 18:40:06 UTC 2023


On Mon, 24 Apr 2023 18:23:14 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Open source few AWT ScrollPane related tests.
>
> test/jdk/java/awt/ScrollPane/ComponentScrollTest/ComponentScrollTest.java line 87:
> 
>> 85:             });
>> 86:         } finally {
>> 87:             EventQueue.invokeLater(() -> {
> 
> Why the invokeLater is used here?

I preferred asynchronous EDT would be better since its finally block. Is there any particular reason that we should use `invokeAndWait` than `invokeLater`?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13621#discussion_r1175654305



More information about the client-libs-dev mailing list