This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 56375

Summary: StatusLineElement leak and performance problem
Product: platform Reporter: Petr Nejedly <pnejedly>
Component: Window SystemAssignee: Jiri Rechtacek <jrechtacek>
Status: CLOSED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P1    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Nejedly 2005-03-14 13:16:34 UTC
getStatusLineElements registers a lookup listener on StatusLineElementProviders
On each change, the listener calls (from AWT) decoratePanel(), which calls back
to getStatusLineElements and registers another instance of the listener.
So each time there is an event from the default Lookup about such a change,
the number of listeners grows exponentially and the time to process them as well.
You can probably easily trigger the problem by reloading a module.
Comment 1 Jiri Rechtacek 2005-03-14 14:05:14 UTC
Checking in src/org/netbeans/core/windows/view/ui/MainWindow.java;
/cvs/core/windows/src/org/netbeans/core/windows/view/ui/MainWindow.java,v  <-- 
MainWindow.java
new revision: 1.47; previous revision: 1.46
done
Comment 2 Petr Nejedly 2005-03-14 14:41:30 UTC
OK