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 15016 - Please remove static icons and data from BeanInfos
Summary: Please remove static icons and data from BeanInfos
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 14943
  Show dependency tree
 
Reported: 2001-08-31 13:16 UTC by Petr Nejedly
Modified: 2003-06-30 17:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2001-08-31 13:16:58 UTC
There are *BeanInfo classes which uses static images and even static
initializers holding the BIs data. This is considered a memory leak
in this context.

For loading images, use org.openide.util.Utilities.loadImage directly
in getImage without any caching (Utilities will do SoftCaching for you).

Create BeanDeascriptor and PropertyDescriptors just on demand without
any caching, Introspector will cache it itself.

You can look at beaninfos in org.netbeans.beaninfo for an example.

Please fix it also in debuggerjpda and debuggertools.
Comment 1 Jan Stola 2001-08-31 15:25:36 UTC
Bringing back Summary accidentaly removed by Petr Nejedly.
Comment 2 Petr Nejedly 2001-09-18 16:22:44 UTC
Debugger modules are the last standard modules that didn't change
their BeanInfos, see #14943 ... :-)
Comment 3 Daniel Prusa 2001-10-17 12:21:08 UTC
Fixed in main trunk.
Comment 4 Petr Nejedly 2001-10-17 13:39:59 UTC
Everything is fixed except
org/netbeans/modules/debugger/support/java/JavaDebuggerSettingsBeanInfo.java
Comment 5 Daniel Prusa 2001-10-17 15:03:56 UTC
Should be OK now.
Comment 6 Petr Nejedly 2001-10-17 15:28:38 UTC
Now I agree ;-)
Comment 7 Quality Engineering 2003-06-30 17:27:51 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.