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.
Summary: | [formatting] Switch statement not formatted correctly | ||
---|---|---|---|
Product: | groovy | Reporter: | Lukas Jungmann <jungi> |
Component: | Editor | Assignee: | Martin Janicek <mjanicek> |
Status: | REOPENED --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 224640 |
Description
Lukas Jungmann
2009-01-12 13:58:50 UTC
*** 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"); } |