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

Bug 405101

Summary: Indentation error when using right bit shift operator in a for-loop
Product: [Eclipse Project] JDT Reporter: Andreas Draganis <andreas.draganis>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: pwebster
Version: 4.2.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Andreas Draganis CLA 2013-04-07 05:40:28 EDT
The bug is clearly described here
http://stackoverflow.com/questions/15853105/indentation-error-in-eclipse-when-using-the-bit-shift-operator-or-am-i-missi

In summary:
The following two code pieces are according to Eclipse's preferred indentation

for (int i = 0; i < 1; i++) {
    int a = 1 >> 1;
int b = 2;
}

for (int i = 0; i < 1; i++) {
    int a = (1 >> 1);
    int b = 2;
}
Comment 1 Eclipse Genie CLA 2019-12-25 17:15:12 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.