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 Dev (Build 201002152000) VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07 OS: Windows Vista User Comments: facilityderek: Opened a JSP containing sriptlets, javascript, and tag libraries. This file opened long after project scanning had stopped. Other files had been opend previously without delay. GUEST: This happens often when i work on jsp/jsf/jspx files malfunction84: Opening a file GUEST: Editing GWT JSP page. Maximum slowness yet reported was 26390 ms, average is 7265
Created attachment 96975 [details] nps snapshot
((JspDataObject) getDataObject()).updateFileEncoding(false) cannot be called from EditorSupport.open() since it runs in AWT thread. This was done because we tested if the encoding is valid and if not showed a dialog asking the user whether he wants to open the file or not. Since we cannot determine the encoding in the AWT thread and then possibly cancel the execution, I've changed the behaviour so the file is opened everytime, but if the encoding is detected as errorneous a warning dialog pops up and warns the user about that. This happens in EditorSupport.loadFromStreamToKit() where its safe to call the parser since the method runs asynchronously. fixed in web-main#242e00358e7c
*** Bug 183169 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log: