On Mon, 24 Apr 2023 18:23:14 GMT, Sergey Bylokhov <[email protected]> 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

Reply via email to