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 46620 - Use String.intern() for file attribute names in BinaryFS
Summary: Use String.intern() for file attribute names in BinaryFS
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Petr Nejedly
Depends on:
Reported: 2004-07-27 16:50 UTC by _ rkubacki
Modified: 2008-12-22 18:52 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-07-27 16:50:26 UTC
can intern strings read as a name of file
attribute (these strings should be in pool anyway
because they are used as literals somewhere if
they make sense).

With simple project opened in my dev build I see
couple of them referenced mostly from binary FS only:
132 instances of 'originalFile', 34 'instanceOf',
45 'instanceCreate', 118 'instanceClass', 66
'SystemFileSystem.icon', 99
'SystemFileSystem.localizingBundle'. How much is
it? 20-30kB perhaps.
Comment 1 _ rkubacki 2004-07-27 17:13:49 UTC
But I am not sure about attrs for file ordering.
Comment 2 _ rkubacki 2004-07-27 17:42:26 UTC
re file ordering - maybe we should not intern it for string containing
/. OTOH there are some duplicates too (like the same order of items in
toolbar as in menu for Cut vs. Copy actions).
Comment 3 Petr Nejedly 2004-07-28 13:07:16 UTC
How could I forget about this... ?
Thanks for noticing
Comment 4 Petr Nejedly 2004-12-25 18:08:47 UTC
Forgot to mark as fixed.
Interning added in,v1.13, on 2004/09/23 and made it into
4.0 release.
Comment 5 Marian Mirilovic 2005-12-20 15:50:55 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.