<Swing Dev> [10] RFR JDK-8175968: The javax.swing.filechooser.FileSystemView constructor consumes memory by adding a PropertyChangeListener that is never removed.

Sergey Bylokhov sergey.bylokhov at oracle.com
Tue Jul 4 23:05:19 UTC 2017


Hi, Prasanta.
Probably it is possible to implement it without users interaction and new api?

----- prasanta.sadhukhan at oracle.com wrote:

> Hi All,
> 
> Please review a fix for a memory leak issue where
> PropertyChangeListener 
> object added by FileSystemView constructor is never removed.
> Proposed fix is to add dispose() method to be called by app when they
> 
> want to remove this resource.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8175968
> webrev: http://cr.openjdk.java.net/~psadhukhan/8175968/webrev.00/
> 
> Regards
> Prasanta



More information about the swing-dev mailing list