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

Summary: Many equal compiled Patterns on the heap
Product: apisupport Reporter: Petr Nejedly <pnejedly>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: blocker CC: issues
Priority: P3 Keywords: PERFORMANCE, SIMPLEFIX
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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