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.
I've discovered $subject bug while I have been trying to set body into method in java class on filesystem.
Can you, please, attach an example of the string passed to method.setBody() and the (wrongly indented) output ? I am only aware of bad indentation of comments right now.
I'm marking it as WORKSFORME - as it considers java code generator, things are OK. They may be a bug in Editor's indentation engine, or in interaction of code generator and that engine. Please provide an example and reopen the bug, if you want pursue the issue further.
It doesn't work for me in ''complicated'' example. Please use test from bug 11003 (in attachment). Run it with using internal execution, then comment out line 41 and run it again. It will finish with bad indented body of method ''added''.
Fixed in main trunk. Setting as 3.2.1 candidate.
Checking in Method.java; /cvs/java/src/org/netbeans/modules/java/codegen/Method.java,v <-- Method.java new revision: 1.8; previous revision: 1.7 done Checking in ElementBinding.java; /cvs/java/src/org/netbeans/modules/java/codegen/ElementBinding.java,v <-- ElementBinding.java new revision: 1.20; previous revision: 1.19 done
[010616] Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.