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 83807 - Many equal compiled Patterns on the heap
Summary: Many equal compiled Patterns on the heap
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE, SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2006-08-30 15:17 UTC by Petr Nejedly
Modified: 2006-11-03 19:38 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 Petr Nejedly 2006-08-30 15:17:05 UTC
onm.apisupport.project.Evaluator.ANT_PROP_REGEX should probably be static, as
there are many such patterns compiled on the heap.
Comment 1 Jesse Glick 2006-08-30 23:22:13 UTC
Relic from when Evaluator was a nonstatic nested class. For some reason Java
refuses to let you have a static member in a nonstatic nested class, even though
such a declaration would pose no semantic problems that I know of.

Checking in Evaluator.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/Evaluator.java,v
 <--  Evaluator.java
new revision: 1.12; previous revision: 1.11
done