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

Michael Strauß mstrauss at openjdk.org
Fri Mar 7 21:36:56 UTC 2025


On Fri, 7 Mar 2025 21:11:52 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> We are not addressing the misuse of APIs by the applications, only providing a mechanism to fail early in the narrow case when controls/skins/nodes try access the Platform globals.

Then I diagree with the problem statement. Calling out to `checkFxUserThread` in the property getter is a very superficial fix that's not materially better than simply documenting that we assume the property only be used on the FX thread.

On a related note, I would like to see us move to a more structured form of documentation, for example with custom javadoc tags. This makes it easier to see information at a glance in the generated documentation.

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

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


More information about the openjfx-dev mailing list