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 14940 - Please remove static icons and data from BeanInfos
Summary: Please remove static icons and data from BeanInfos
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 14943
  Show dependency tree
 
Reported: 2001-08-30 11:01 UTC by Petr Nejedly
Modified: 2003-07-02 08:30 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:01:23 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.

The sources to modify which I know of:
TomcatDataLoaderBeanInfo.java
DWEditorSettingsBeanInfo.java
ServletSettingsBeanInfo.java
JspLoaderBeanInfo.java
JspServletDataLoaderBeanInfo.java
ServletDataLoaderBeanInfo.java
DelegatingFileSystemBeanInfo.java
WebClassesLoaderBeanInfo.java
WebContextLoaderBeanInfo.java

Please also remove the static image from:
WebInfObject.java 

You can look at beaninfos in org.netbeans.beaninfo for an example.
Comment 1 Petr Nejedly 2001-08-30 11:03:54 UTC
Also don't use static bundles.
Comment 2 _ rkubacki 2001-08-30 12:31:09 UTC
assigned
Comment 3 _ rkubacki 2001-08-31 14:49:29 UTC
Done except DWEditorSettingsBeanInfo.java (unmaintained code)
Comment 4 Petr Nejedly 2001-08-31 15:28:04 UTC
x
Comment 5 Petr Nejedly 2001-10-17 16:56:56 UTC
Please remove also static images from 
modules/web/context/WebAppLoaderBeanInfo.java
Comment 6 _ rkubacki 2001-10-23 13:21:08 UTC
updated WebAppLoaderBeanInfo

Comment 7 Petr Nejedly 2001-10-23 13:47:31 UTC
OK, thanks.
Comment 8 Quality Engineering 2003-07-02 08:30:58 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.