Integrated: JDK-8304933: BitSet (used for CSS pseudo class states) listener management is incorrect

John Hendrikx jhendrikx at openjdk.org
Mon Apr 10 23:47:41 UTC 2023


On Mon, 27 Mar 2023 14:24:42 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:

> BitSet uses the SetListenerHelper abstraction to prevent allocating the listener arrays.
> 
> When removing listeners, the newly returned listener helper (which may be different from the one called) is not reassigned. This effectively means that removing the listener does not happen.
> 
> This fix correctly assigns the potentially changed SetListenerHelper instance to BitSet's helper field after listener removal.

This pull request has now been integrated.

Changeset: 53959421
Author:    John Hendrikx <jhendrikx at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/5395942174073f25a7fa8f6ccf2fb4dc6604133a
Stats:     252 lines in 3 files changed: 249 ins; 0 del; 3 mod

8304933: BitSet (used for CSS pseudo class states) listener management is incorrect

Reviewed-by: kcr, mstrauss

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

PR: https://git.openjdk.org/jfx/pull/1071


More information about the openjfx-dev mailing list