| Summary: | [typing] Indentation broken in enhanced for loop | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
| Component: | Text | Assignee: | Dani Megert <daniel_megert> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | CC: | daniel_megert, deepakazad, rthakkar, ulrich.hobelmann |
| Version: | 3.7 | ||
| Target Milestone: | 3.7 M4 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Markus Keller
The copying is not necessary to reproduce. Ctrl+I also indents wrongly:
for (Number n : nums) {
Number n2 = (Number) n;
Number n2 = (Number) n;
System.out.println(n);
}
I've reverted all recently made indent fixes. Verified for 3.7M4 with I20101206-1800. The problem also affects for-loops with a single statement instead of a block:
for (Integer id : ids)
process(id);
int nextLine;
Using 3.7RC2 here (20110526-1053).
(Does that mean reopen, since it's supposed to be fixed in M4?)
(In reply to comment #4) > The problem also affects for-loops with a single statement instead of a block: > > for (Integer id : ids) > process(id); > int nextLine; > > Using 3.7RC2 here (20110526-1053). > > (Does that mean reopen, since it's supposed to be fixed in M4?) Please file a new bug. |