Should javafx.scene.robot.Robot be able to use nested event loops?

Mark Raynsford org.openjdk at io7m.com
Mon May 22 18:26:44 UTC 2023


On 2023-05-22T07:42:23 -0700
Martin Fox <martin at martinfox.com> wrote:

> Mark,
> 
> Do you have a sample app that exhibits this behavior? I can’t reproduce it on Mac or Windows.
> 
> I can’t think of anything on the Robot side that would cause this. A Robot just asks the OS to post an event. The event isn’t targeted at a specific process or window and the Robot has no control over where it ends up. If it does get delivered to your app it should behave exactly like a user generated event.
> 
> If the user can close the window it means there’s an event loop running and that should be draining the OS queue. So I’m puzzled by what’s going on here.
> 
> Anyway, not expected behavior. Still a mystery.

Amusingly, I spent half an hour extracting the smallest code sample
that would reproduce it and, of course, it turned out I couldn't
reproduce it.

As I mentioned, my mail hasn't been reaching the list, and I first ran
into this a few weeks back. It's possible that a JavaFX update in the
intervening weeks fixed the root cause (I likely wasn't even up-to-date
when I ran into it, so it could be any reasonably recent release that
fixed it).

I'm back working on the original ITs now, so I'll see if I run into it
again.

-- 
Mark Raynsford | https://www.io7m.com



More information about the openjfx-dev mailing list