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.
The code: if (true) { System.out.println("1"); } else // A comment if (true) { System.out.println("2"); } when formatted (Source->Format, Alt+Shift+F) will jump to if (true) { System.out.println("1"); } else // A comment { if (true) { System.out.println("2"); } } and back forever! The jump is determined by the presence of the comment after else ("// A comment").