On Mon, 10 Apr 2023 23:08:31 GMT, John Hendrikx <jhendr...@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.
>
> John Hendrikx has updated the pull request incrementally with two additional 
> commits since the last revision:
> 
>  - Change comment
>  - Add copyright header

In Set, the type is different: Set<E> but <T> toArray(T[]).
created [JDK-8305867](https://bugs.openjdk.org/browse/JDK-8305867)

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

PR Comment: https://git.openjdk.org/jfx/pull/1071#issuecomment-1503942582

Reply via email to