RFR: JDK-8302618: [macOS] Problem typing uppercase letters with java.awt.Robot when moving mouse [v7]

Alexey Ivanov aivanov at openjdk.org
Mon Jul 24 17:58:59 UTC 2023


On Fri, 21 Jul 2023 21:09:56 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

> Additionally, I believe concurrent external manual mouse movement is not supported when Robot is performing mouse events. This would produce erroneous result.

I don't think it's correct to say that such a situation is *not supported*. From this point of view, the situation described in the bug is not supported either. Yet you are fixing this scenario.

If the user moves the mouse when Robot generates mouse events, it is expected to produce erroneous results because the mouse ends up in the wrong position when Robot issues further events — essentially it breaks the assumptions in the test.

So, we should check whether the internal flags passed to the generated events remain valid. But it could be not as easy to verify as in this case.

Are mouse events affected if the user types text on the keyboard while Robot is moving the mouse? It's a mirrored scenario to the one described in the bug. The position of mouse remains intact, yet flags may change by concurrent keyboard input.

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

PR Comment: https://git.openjdk.org/jdk/pull/14744#issuecomment-1648353847



More information about the client-libs-dev mailing list