<Swing Dev> RFR: 8240633 Memory leaks in the implementations of FileChooserUI
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Sat Mar 7 22:20:38 UTC 2020
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.
--
Best regards, Sergey.
More information about the swing-dev
mailing list