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.
Build: NetBeans IDE 6.8 (Build 200912041610) VM: Java HotSpot(TM) Client VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04 OS: Windows XP User Comments: stefan79: Editing in Diff-Window. Maximum slowness yet reported was 21626 ms, average is 9315
Created attachment 100497 [details] nps snapshot
runWhenScanFinished() returns Future. Therefore it should not block.
Sorry, but the Javadoc of JS.runWhenScanFinished says that it runs the task on asynchronously only if it would be blocked by the background scan. Otherwise, it runs synchronously. The debugger seems to be competing with several J2EE computations (done in brackground thread), so adding J2EE on CC.
Then the Future does not have much sense! I do not care at all if it's blocked by a background scan or another task. If it returns Future, it should not block.
It does, just read the javadoc.
O.K. so I guess I need to call runWhenScanFinished() off AWT thread always.
Parsing code is run always in an RP thread, we assure that AWT is always responsive. Fixed in changeset: 182807:e71641eae135 http://hg.netbeans.org/main/rev/e71641eae135
Integrated into 'main-golden', will be available in build *201011200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e71641eae135 User: mentlicher@netbeans.org Log: #188216 Scan the sources really lazily.