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 121030 - RepositoryTranslatorImpl.UnitsCache code is unreadable and error prone
Summary: RepositoryTranslatorImpl.UnitsCache code is unreadable and error prone
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: Sun All
: P4 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on: 127727
Blocks:
  Show dependency tree
 
Reported: 2007-11-02 22:28 UTC by Vladimir Kvashin
Modified: 2009-12-21 06:40 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 Vladimir Kvashin 2007-11-02 22:28:03 UTC
RepositoryTranslatorImpl.UnitsCache has a lot of static methods and fields; at the same time the enclosing class has
*static* field of type UnitsCache. So this double-staticness looks very strange. I strongly believe it's worth leaving
only enclosing class' field static. I would change this if we weren't so close to release: these change *might* have
some    side effects (related with multy-threading and synchronization).
Comment 1 Vladimir Kvashin 2007-11-02 22:33:12 UTC
In particular, *static* field fileNamesCaches is supposed to hold an array that is *parallel* to the *instance* field
cache (a protected field that belongs to the base class, IntToStringCache). Horrible...
Comment 2 Quality Engineering 2009-12-21 06:40:14 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team