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

Andy Goryachev angorya at openjdk.org
Fri Mar 7 18:46:04 UTC 2025


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

>> Adding a listener or a binding to the global/static properties outside of the JavaFX application thread will likely cause concurrent access issues when the caller, still being executing in the background thread, receives an event in the context of the JavaFX application thread.
>> 
>> This change enforces accessing Platform::accessibilityActive only from the JavaFX application thread.
>> 
>> Q: should we also enforce the access rules for Platform::getPreferences() for the same reason?
>
> Andy Goryachev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
> 
>  - enforce
>  - Merge remote-tracking branch 'origin/master' into 8351067.accessibility
>  - review comments
>  - javadoc

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

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

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


More information about the openjfx-dev mailing list