RFR: 8306072: Open source several AWT MouseInfo related tests [v3]

lawrence.andrews duke at openjdk.org
Mon Apr 24 14:13:46 UTC 2023


On Mon, 24 Apr 2023 14:08:24 GMT, Tejesh R <tr at openjdk.org> wrote:

>> test/jdk/java/awt/MouseInfo/ContainerMousePositionTest.java line 88:
>> 
>>> 86:             EventQueue.invokeAndWait(() -> {
>>> 87:                 Point p = button.getLocationOnScreen();
>>> 88:                 xPos = p.x + button.getWidth() / 2;
>> 
>> xPos & yPos are used within EDT and outside EDT ?
>
> Yeah, getting the values within EDT and used for `Robot` operations outside. Isn't it allowed ?

It is allowed please use transient keyword for xPos & yPos

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13573#discussion_r1175346404



More information about the client-libs-dev mailing list