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

Summary: Multiline alignment for 'for' statement does not work
Product: java Reporter: Jiri Prox <jiriprox>
Component: SourceAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Sample from the Format dialog, before and after an autoformat.

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 ***