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 63570 - new useless listener created after each typed character
Summary: new useless listener created after each typed character
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-09-02 13:17 UTC by _ rkubacki
Modified: 2007-11-05 13:44 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 _ rkubacki 2005-09-02 13:17:23 UTC
ExtSyntaxSupport.TokenItemTP constructor is called when user type a character
and creates new DocumentListener that is never attached to anything. This is
obviously mistake from performance point of view. 

Also the finalizer of this class might be totaly wrong if you do not attach it
through weak reference so the code probably deserve some review.
Comment 1 Miloslav Metelka 2005-10-26 14:00:57 UTC
I have removed the unused part of code.
Fixed in trunk:
Checking in ExtSyntaxSupport.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/ExtSyntaxSupport.java,v  <-- 
ExtSyntaxSupport.java
new revision: 1.27; previous revision: 1.26