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 45103 - Avoid use of source hierarchy in JavaEditor
Summary: Avoid use of source hierarchy in JavaEditor
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 44105
  Show dependency tree
 
Reported: 2004-06-17 15:03 UTC by _ rkubacki
Modified: 2004-08-13 12:06 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 2004-06-17 15:03:00 UTC
dev build from Jun 17, Linux, JDK1.5.0b55

JavaEditor$11 updates set of activated nodes and
uses old source hierarchy. In current dev build
I've seen many stack traces begining with 

org.netbeans.modules.javacore.parser.ResourceInfo.refreshASTree(ResourceInfo.java:48)
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:904)
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:430)
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getParser(SemiPersistentElement.java:667)
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getFeaturePosition(ResourceImpl.java:379)
org.netbeans.modules.javacore.jmiimpl.javamodel.FeatureImpl.getPosition(FeatureImpl.java:247)
org.netbeans.modules.javacore.JMManager.getElementPosition(JMManager.java:536)
org.netbeans.modules.java.JavaParserGlue$TextElement.getBounds(JavaParserGlue.java:675)
org.netbeans.modules.java.JavaParserGlue$TextElement.getStartOffset(JavaParserGlue.java:775)
org.netbeans.modules.java.JavaParserGlue$TextElement.getElementIndex(JavaParserGlue.java:719)
org.netbeans.modules.java.JavaParserGlue.findElement(JavaParserGlue.java:612)
org.netbeans.modules.java.JavaEditor$11.run(JavaEditor.java:1194)
org.openide.util.Task.run(Task.java:136)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)

They slow down the editor a lot.
Comment 1 _ rkubacki 2004-06-18 15:56:24 UTC
This inner class really causes a lot of activity. PatternGroupNodes
are created if you move cursor out of class or into some member and
back into it. 
Comment 2 Jan Becicka 2004-07-30 09:16:33 UTC
Fixed by Honza Pokorsky (see issue 44661).