<Swing Dev> [12] RFR JDK-8204963:javax.swing.border.TitledBorder has a memory leak
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Mon Aug 6 18:24:22 UTC 2018
Hi, Prasanta.
On 06/08/2018 07:40, Prasanta Sadhukhan wrote:
> Proposed fix is to make it a named static class so that it does not hold
> reference and can be garbage collected.
The same effect can be achieved by using lambda instead of anonymous
PropertyChangeListener. Can you please check which version will be
shorter/clearer lambda or static class.
--
Best regards, Sergey.
More information about the swing-dev
mailing list