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.
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
Created attachment 2284 [details] thread dump
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).
Hacked in file: Checking in libsrc/org/netbeans/editor/ext/java/JavaFormatter.java; new revision: 1.25; previous revision: 1.24
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.
Resolved for 3.3.x or earlier, no new info since then -> closing.