Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358663

Summary: Wrong indentation of "for" without braces
Product: [Eclipse Project] JDT Reporter: a4976798
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: amj87.iitr, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard: stalebug

Description a4976798 CLA 2011-09-22 16:34:46 EDT
This is an indentation performed by "Correct Indentation" on the following for-loop is not correct. It wrongly indents the line after the for-loop with two (not just one) indentation tab.
============
for(String delta : deltas) out.write(delta);
		out.write(";\n\n");
==========


-- Configuration Details --
Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.platform 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f
Comment 1 Ayushman Jain CLA 2011-09-23 00:13:05 EDT
I cannot reproduce this problem. Can you please give a complete test case (perhaps attach the test as a java file) that can help me reproduce? Thanks.
Comment 2 Eclipse Genie CLA 2020-07-03 19:59:25 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Eclipse Genie CLA 2022-12-13 06:08:57 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.