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.
Save a source file with a method containing an inner block (eg. for loop): public class NewClass { public static void main(String[] args) { { } } } Now, add a comment in the line of the closing bracket. public class NewClass { public static void main(String[] args) { { } // Whatever } } Using the the History/Remove function will incorrectly remove the whole line, including the closing bracket. public class NewClass { public static void main(String[] args) { { } }