On Fri, 7 Mar 2025 18:43:29 GMT, Andy Goryachev <ango...@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