Bug 23709 - for (/*comment*/; causes indentation to misbehave
Summary: for (/*comment*/; causes indentation to misbehave
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-18 09:47 EDT by Andreas Krüger CLA
Modified: 2003-11-20 11:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Krüger CLA 2002-09-18 09:47:27 EDT
int indx = 7;

This is indented weirdly:

            for (/*indx is already initialized*/; indx < 20; ++indx) {
        }

While this works out ok:

        for (; indx < 20; ++indx) {
        }

Is this related to bug 7319?
Comment 1 Olivier Thomann CLA 2003-01-15 13:23:03 EST
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new 
implementation is still in the works. Therefore we cannot include it for 2.1. 
Not enough testing and we need to polish the preferences. This will be address 
for 2.2 as stated in the JDT/Core plan.
Comment 2 Philipe Mulet CLA 2003-10-30 04:42:33 EST
does this work now ?
Comment 3 Olivier Thomann CLA 2003-10-30 08:45:40 EST
Fixed. Regression test added.
Comment 4 David Audel CLA 2003-11-20 11:16:03 EST
Verified.