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.
Product Version: NetBeans IDE Dev (Build 200706180000) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: F:\netbeans\userdirs\nb60-0618 -File > New Project > Mobility > Mobile Application -create new java file in this project -add a preprocessor block to this file //#if a //#else //#endif -reformat the code by CTRL+ALT+F ->the result is damaged code //#if a //# lse //#endif -it is stopper for mobility preprocessor -of course a workaround is NOT to use automatic text formating
Untill 'Preprocessor Blocks -> Re-Comment' is called, positions of the Java AST nodes do not correspond to the document content. Reassigning.
The problem is in the preprocessign the modified document before parsing. When the document is opened and manually modified it must not go through JavaFileFilterImplementation. The data for parsing must be taken directly from the document. Preprocessor only interfaces between file and document. Recomment action fixes comments in the docuemnt so then the modified and preprocessed documents are equal.
Tomasi, when filterReader and filterWriter is corectly implementaed and called then filterCharSequence may be should do nothing? filterCharSequence is called between modified document and parser and that is wrong.
This issue is showstopper for M10. Please integrate the fix into the trunk and "release60-m10" branch.
fixed
Could you please verify this issue for the latest M10 build? Thanks.
works in M10 06/28 1431 build