Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6688203
Votes 0
Synopsis Memory leak and performance problems in the method getFileSystemView of FileSystemView
Category java:classes_swing
Reported Against beta
Release Fixed 7(b27)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 14-APR-2008
Description
After every call of the method getFileSystemView of FileSystemView a new listener are created and added to UIManager. But logically there is need only one!

These listeners are never removed and a pile of such listeners slows UIManager notifications.

Below is the bad code:

        UIManager.addPropertyChangeListener(new PropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent e) {
               if (e.getPropertyName().equals("lookAndFeel")) {
                   useSystemExtensionsHiding = UIManager.getDefaults().getBoolean("FileChooser.useSystemExtensionHiding");
               }
            }
        });
Posted Date : 2008-04-14 16:18:34.0
Work Around
N/A
Evaluation
To remove from the "FileSystemView#getFileSystemView" method creation of a new listener and adding it to UIManager
Posted Date : 2008-05-01 10:34:58.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang