RFR: 8290037: Bindings should clean up after themselves when their weak listeners go out of scope
Kevin Rushforth
kcr at openjdk.org
Thu Jul 14 15:29:32 UTC 2022
On Thu, 14 Jul 2022 14:48:14 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:
> This is an initial (incomplete) implementation of 8290037 for evaluation.
>
> If the approach is agreed, I will modify the rest of the `*PropertyBase` classes which use weak listeners, and add some tests.
>
> I didn't use `Cleaner` because cleaning up a listener may block.
If we go this route it warrants updates to the API docs to describe the behavioral changes being introduced. Specifically, the synchronizing of the add / remove listener methods and any changes to the lifecycle of the bindings.
-------------
PR: https://git.openjdk.org/jfx/pull/827
More information about the openjfx-dev
mailing list