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 98501 - Useless lists held by static references
Summary: Useless lists held by static references
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-03-21 16:35 UTC by Andrei Badea
Modified: 2007-08-21 15:02 UTC (History)
1 user (show)

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 Andrei Badea 2007-03-21 16:35:36 UTC
In JBPluginUtils there are a few lists (domainRequirements5x) which are created
in static initializers and held in static references, although it seems they are
not needed often (typically when a server is registered). It seems these lists
can be just created on demand.
Comment 1 Libor Kotouc 2007-03-21 16:48:37 UTC
This bug will be fixed as soon as possible.
Comment 2 Andrei Badea 2007-03-21 17:01:22 UTC
I don't see any reason this issue cannot be fixed in 6.0.
Comment 3 Petr Hejl 2007-08-21 15:02:22 UTC
Changed to lazy init. Unfortunately the methods are required for children nodes (for now). If the performance would be
enough in this use case we can easily switch to on-demand creation.

Checking in src/org/netbeans/modules/j2ee/jboss4/ide/ui/JBPluginUtils.java;
/cvs/serverplugins/jboss4/src/org/netbeans/modules/j2ee/jboss4/ide/ui/JBPluginUtils.java,v  <--  JBPluginUtils.java
new revision: 1.13; previous revision: 1.12
done