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.
[dev-200503211900, JDK 1.5.0_02] I encountered very poor performance of "focus rescanning" feature. I created default java application project, with one class. Then I switched to different application to read description of user problem to reproduce it. After returning back to IDE I invoked Refactoring/Rename without paying attention to rescanning (I just forgot about it). Rename dialog was opened but it was blank and status bar was showing "Checking changes... (50%)" for about 15 to 20 sec, whole period the Rename dialog was blank. After finishing rescanning the Rename dialog was painted correctly. This behavior is reproducible. Attaching thread dumps. Computer configuration Notebook, P4 M 2GHz, 512 MB RAM.
Created attachment 21016 [details] thread dump
Created attachment 21017 [details] another tds
Created attachment 21026 [details] one more td
Might be triggered by changing platform for some project. Until I changed platform I was unable to reproduce but after adding another platform (JDK 1.4.2_07, JDK 1.5.0_01) and assigning it to some project I was able to reproduce the problem. Also it seems that the rescanning is not triggered after each focus of IDE comming from external application. Sometimes just nothing happens.
Fixed. Checking in src/org/netbeans/modules/javacore/scanning/FileScanner.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/FileScanner.java,v <-- FileScanner.java new revision: 1.22; previous revision: 1.21 done
Focus rescanning is no more used.