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.
After formatting code of a large schema file the next action in the IDE will cause it to hang. Steps: 1. Open attached schema 2. Switch to source view 3. Place cursor somewhere in the code 4. Select format 5. Once it is finished try and select the drop down in the navigator pane, IDE hangs.
Created attachment 60363 [details] Schema to use
Created attachment 60364 [details] Thread dump
System Info: Product Version: NetBeans IDE 6.1 RC2 (Build 200804170002) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119 System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)
Changed summary and priority. The IDE will come back after a period of waiting. This time depends on the size of the schema and can possibly take more than 10 minutes. Discussing with team if should be patch1 candidate or what.
Under the cover: 1. We reformat the code. The performance of this action is proportional to the size of the document. 2. After the reformat is done, the models are synchronized. xdm being the core, does the ground work by calculating the diff. This diff is a worst case scenario because the entire doc is changed. 3. Finally schema model and axiom get synchronized. However, I do agree with the issue and will try to fix this.
Fixed: http://hg.netbeans.org/main?cmd=changeset;node=c59fe1d65f98.
Fix Verified Product Version: NetBeans IDE Dev (Build 200807080009) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb)