<Swing Dev> RFR: 8240633 Memory leaks in the implementations of FileChooserUI

Pankaj Bansal pankaj.b.bansal at oracle.com
Tue Mar 10 06:00:51 UTC 2020


Hello Sergey,

The changes look fine.

Regards,

Pankaj


On 08/03/20 3:50 AM, Sergey Bylokhov wrote:
> Hello.
> Please review the fix for jdk/client.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8240633
> Fix: http://cr.openjdk.java.net/~serb/8240633/webrev.00
>
> Our tests in mach5 for JFileChooser sometime fails with different
> suspicious exceptions. The root cause is that the Aqua UI delegates
> add various listeners to the JFileChooser, and never delete them.
> So these Aqua related listeners may fail if current L&F was changed.
>
> In the fix we will "uninstall" all child components for the 
> AquaFileChooserUI.
>
> Also in the AquaFileChooserUI we had added model as a 
> PropertyChangeListener twice,
> and never removed the filterComboBoxModel.
>



More information about the swing-dev mailing list