RFR: 8351067: Enforce Platform::accessibilityActive threading use [v3]

Michael Strauß mstrauss at openjdk.org
Fri Mar 7 21:07:58 UTC 2025


On Fri, 7 Mar 2025 18:43:29 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> @mstr2 : should we also enforce the access rules in `Platform::getPreferences()` ?

In principle, yes. But just checking at the point of calling `Platform.getPreferences()` doesn't seem to be sufficient. An application could easily call `getPreferences()` on the FX thread, and then unsafely access the returned instance on another thread.

We should probably first come up with a systematic approach on how to solve these kinds of problems, and not do ad-hoc solutions here and there.

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

PR Comment: https://git.openjdk.org/jfx/pull/1728#issuecomment-2707457414


More information about the openjfx-dev mailing list