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.
There are a bug when auto-formatting nested if statements, which changes the semantics of the program. The auto- formatting tool changes the following code if ( ... ) { if ( ... ) command } else command to if ( ... ) if ( ... ) command else command which are not semantically equal to the first one.
Already reported and fixed as issue #123258. Thanks for the report. *** This issue has been marked as a duplicate of 123258 ***