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 29138 - avoid keeping static references to resource bundles
Summary: avoid keeping static references to resource bundles
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://www.netbeans.org/download/dev/...
Keywords: PERFORMANCE
Depends on:
Blocks: 34218
  Show dependency tree
 
Reported: 2002-11-28 15:11 UTC by _ rkubacki
Modified: 2005-07-11 12:50 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 _ rkubacki 2002-11-28 15:11:52 UTC
These resources cannot be released and sometimes
are initialized even when it is not neceseary.
Comment 1 Tomas Pavek 2002-12-02 18:12:42 UTC
I cannot find any static references to bundles in current form module
code. I cleared this not so long ago. Could you list here what you
have found?

*** This issue has been marked as a duplicate of 21052 ***
Comment 2 _ rkubacki 2002-12-05 13:10:02 UTC
Looks OK now though ComponentInspector use keys from openide. This is
not very safe.
Comment 3 _ rkubacki 2002-12-05 13:18:58 UTC
Also o.n.m.f.actions.ReloadAction line 36 is suspicious

o.n.m.f.editors2.CustomTableModelEditor and TableModel editor has
static variable.
Comment 4 Tomas Pavek 2002-12-05 14:30:01 UTC
> Also o.n.m.f.actions.ReloadAction line 36 is suspicious

Because it uses NbBundle.getBundle(TestAction.class), i.e. another
class as parameter, not itself? But if it is from the same package...
Anyway, easy to fix.


You are right with the table model editors, they were recently moved
from core to form editor, I did not tak them into account.
Comment 5 Tomas Pavek 2003-02-14 14:01:05 UTC
Done.
Comment 6 Marek Grummich 2005-07-11 12:50:36 UTC
Verified