On Mon, 24 Apr 2023 14:08:24 GMT, Tejesh R <t...@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