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.
-have a switch statement in java and invoke reformat on the source containing it => one gets ie: int i = 0; switch (i) { case 1: System.out.println("q"); break; case 2: System.out.println("s"); break; default: System.out.println("def"); } -do the same in a groovy file => one gets (unformatted): switch (node) { case "customers" : click "links.customersExpander" break case "dCodes" : click "links.dcodesExpander" break default: throw new UnsupportedOperationException("$node not implemented") }
*** This issue has been marked as a duplicate of 152429 ***
I don't think it is a duplicate.
Still valid issue. Setting TM --> 7.2
At least small improvement for now in revision: web-main #34f85394c623 Now we get: int i = 0; switch (i) { case 1: System.out.println("q"); break; case 2: System.out.println("s"); break; default: System.out.println("def"); } Ideally we should have: int i = 0; switch (i) { case 1: System.out.println("q"); break; case 2: System.out.println("s"); break; default: System.out.println("def"); }
Mmm, bugzilla formatting screw it up. Another try.. Now we get: int i = 0; switch (i) { case 1: System.out.println("q"); break; case 2: System.out.println("s"); break; default: System.out.println("def"); } Ideally we should have: int i = 0; switch (i) { case 1: System.out.println("q"); break; case 2: System.out.println("s"); break; default: System.out.println("def"); }