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 14938 - Please remove static icons and data from BeanInfos
Summary: Please remove static icons and data from BeanInfos
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 14943
  Show dependency tree
 
Reported: 2001-08-30 10:14 UTC by Petr Nejedly
Modified: 2003-07-01 13:35 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 10:14:40 UTC
There are *BeanInfo classes which uses static images and even static
initializers holding the BIs data.

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:
JavadocTypeBeanInfo.java
StdDocletTypeBeanInfo.java
ExternalJavadocExecutorBeanInfo.java
DocumentationSettingsBeanInfo.java
JavadocSettingsBeanInfo.java
StdDocletSettingsBeanInfo.java
ExternalJavadocSettingsServiceBeanInfo.java
JavadocSettingsServiceBeanInfo.java
StdDocletSettingsServiceBeanInfo.java
Jdk12SearchType_japanBeanInfo.java
JavadocSearchTypeBeanInfo.java
Jdk12SearchTypeBeanInfo.java

Also, the class AutoCommentListCellRenderer can be modified
to not hold the images itself.
Comment 1 Petr Nejedly 2001-08-30 10:16:13 UTC
BTW: The static hoding of images is considered a memory leak in this
context.
Comment 2 Petr Suchomel 2001-08-30 13:52:27 UTC
Fixed BeanInfo's
Comment 3 Petr Nejedly 2001-08-30 14:17:31 UTC
Fixed except the first three items:
JavadocTypeBeanInfo.java
StdDocletTypeBeanInfo.java
ExternalJavadocExecutorBeanInfo.java
Comment 4 Petr Suchomel 2001-08-30 14:28:03 UTC
Fixed, bad commit
Comment 5 Petr Nejedly 2001-08-30 14:31:40 UTC
Now OK, thanks.
Comment 6 Quality Engineering 2003-07-01 13:35:42 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.