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 14942 - Please remove static icons and data from BeanInfos
Summary: Please remove static icons and data from BeanInfos
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 14943
  Show dependency tree
 
Reported: 2001-08-30 11:25 UTC by Petr Nejedly
Modified: 2007-09-11 15:08 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-30 11:25:05 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.

Don't use static Bundles

The sources to modify which I know of:
URLDataLoaderBeanInfo.java
FullTextTypeBeanInfo.java
ModificationDateTypeBeanInfo.java
ObjectNameTypeBeanInfo.java
ObjectTypeTypeBeanInfo.java
PDFSettingsBeanInfo.java
SettingsBeanInfo.java
GroupShadowLoaderBeanInfo.java

You can look at beaninfos in org.netbeans.beaninfo for an example.
Comment 1 Peter Zavadsky 2001-08-30 14:01:39 UTC
Fixed in [main-trunk]. Next build available.

(Will look also in other modules.)
Comment 2 Petr Nejedly 2001-08-30 14:25:20 UTC
x
Comment 3 Quality Engineering 2003-07-01 15:31:18 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 4 Vitezslav Stejskal 2007-09-11 15:08:15 UTC
*** Issue 115239 has been marked as a duplicate of this issue. ***