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 attached file invoke reformat ->code is broken and some pieces of code are removed during reformat
Created attachment 52029 [details] problematic file
Data loss -> P1.
confirmed, reproducible
Created attachment 52165 [details] reformating this piece of code nearly half of document is removed
Dusan is looking into it, the fix probably needs to be done in the java code
The problem seems to be that org.netbeans.modules.web.core.syntax.JavaSourceProviderImpl.FilterImpl.filterCharSequence(CharSequence charSequence) does not filter the passed charSequence but it always takes the fresh data form the underlying document instead. Tomasz is working on it.
java/source part fixed. Checking in SourceFileObject.java; /cvs/java/source/src/org/netbeans/modules/java/source/parsing/SourceFileObject.java,v <-- SourceFileObject.java new revision: 1.21; previous revision: 1.20 done
fix completed. Checking in SimplifiedJSPServlet.java; /cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/SimplifiedJSPServlet.java,v <-- SimplifiedJSPServlet.java new revision: 1.31; previous revision: 1.30 done Checking in JavaSourceProviderImpl.java; /cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JavaSourceProviderImpl.java,v <-- JavaSourceProviderImpl.java new revision: 1.10; previous revision: 1.9 done
verified. NetBeans IDE Dev (Build 20071102062308)