JDK-8296076 : Remove internal class LambdaMultiplePropertyChangeListenerHandler
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: controls
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-10-28
  • Updated: 2023-12-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
In the context of JDK-8294809  ListenerHelper, I would like to remove LambdaMultiplePropertyChangeListenerHandler as its functionality will be replaced (and extended) by ListenerHelper.

The reasons to remove LambdaMultiplePropertyChangeListenerHandler:
- it is not symmetric and produces unexpected side effects when removing a listener from a property when multiple listeners have been registered on that property
- its functionality has been replaced by ListenerHelper which not only helps with adding various listeners but also event handlers and event filters

This change will keep existing SkinBase.register*() methods with implementation using ListenerHelper.

This change will make JDK-8265401 obsolete.

TODO: also replace add/remove listener in TextInputControlSkin:330 with ListenerHelper