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 14725 - Editor consumes 100% of CPU time
Summary: Editor consumes 100% of CPU time
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-23 11:47 UTC by Tomas Hurka
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (9.46 KB, text/plain)
2001-08-23 11:49 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2001-08-23 11:47:47 UTC
Use following source code:
package examples;

public class Test {
    public Test() {
    }
}

1. Set automatic parsing delay to 100000
2. Open this code in editor. 
3. Open Tools -> Auto Comment 
4. Comment out constructor
/* public Test() {
   }
*/
5. Fill javadoc for constructor
6. Netbeans consumes 100% CPU
Comment 1 Tomas Hurka 2001-08-23 11:49:48 UTC
Created attachment 2284 [details]
thread dump
Comment 2 Jan Lahoda 2001-08-23 13:23:26 UTC
I have seen this bug on Pilsen build 010817 too.
Please, notice that in example code "Test" constructor does *NOT* have
javadoc comment (that most important point).
Comment 3 David Konecny 2001-10-11 15:22:02 UTC
Hacked in file:
Checking in libsrc/org/netbeans/editor/ext/java/JavaFormatter.java;
new revision: 1.25; previous revision: 1.24
Comment 4 Jan Lahoda 2002-10-18 13:12:34 UTC
So, I tested this on 200210160100 and:
1. No 100%CPU consumption reproducible.
2. The code is uncompilable after using autocomment on such a source.
I think it is impossible to do anything about it.
Comment 5 Quality Engineering 2003-06-30 18:12:31 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.