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.

Bug 148048 - Multiline alignment for 'for' statement does not work
Summary: Multiline alignment for 'for' statement does not work
Status: RESOLVED DUPLICATE of bug 150235
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-23 14:30 UTC by Jiri Prox
Modified: 2008-10-29 11:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample from the Format dialog, before and after an autoformat. (3.31 KB, text/plain)
2008-10-27 15:49 UTC, djvogt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2008-09-23 14:30:22 UTC
Product Version: NetBeans IDE Dev (Build 20080923090945)
Java: 1.6.0_10-rc2; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

Multiline alignment for 'for' statement does not work. The parts of for statement are always indented as continuation
indentation.

Steps to reproduce:
1) turn on multiline alignment for 'for'
2) reformat following code:
for (int i = 0;
i < 10;
i++) {
   System.out.println(i);
}
Comment 1 djvogt 2008-10-27 15:46:57 UTC
This applies to other Multiline Alignment values as well. After a quick examination, all forms are formatted as 
continuations.
Comment 2 djvogt 2008-10-27 15:49:15 UTC
Created attachment 72693 [details]
Sample from the Format dialog, before and after an autoformat.
Comment 3 Jiri Prox 2008-10-29 11:02:15 UTC

*** This issue has been marked as a duplicate of 150235 ***