Bug 20721

Summary: Code formatter bug
Product: [Eclipse Project] JDT Reporter: Adalbert Homa <adalbert.homa>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: danrubel
Version: 2.0   
Target Milestone: 3.0 M4   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Adalbert Homa CLA 2002-06-20 10:35:17 EDT
Here is another bug for the code formatter. I tested it with F3.


/**
 * This is a sample class, to demonstrate the problems
 * with the Eclipse formatter.
 * @author Adalbert Homa
 * @version 1.0
 */
public class FormatTest2 {

    public void testMethod() {
        for (int i = 0; i < 10; i++) {
            // Next line show the problem
                AccountAccessGroupBean aags = new AccountAccessGroupBean(//
        "a", // groupId
        "b", // groupName 
        "c", // lastModified
        "d" // modifiedFlag
    );
            // The second line is without end of line comments
            AccountAccessGroupBean b =
                new AccountAccessGroupBean("a", "b", "c", "d");
        }
    }

    private static class AccountAccessGroupBean {
        AccountAccessGroupBean(String a, String b, String c, String d) {
        }
    }

}
Comment 1 Adam Kiezun CLA 2002-06-20 11:33:21 EDT
moving to jcore
Comment 2 Philipe Mulet CLA 2002-06-21 08:47:36 EDT
Will consider post 2.0
Comment 3 Philipe Mulet CLA 2002-07-25 06:30:30 EDT
Resurrecting formatter issues in 2.1 stream.
Comment 4 Philipe Mulet CLA 2002-07-25 06:32:29 EDT
Clearing resolution
Comment 5 Olivier Thomann CLA 2002-07-30 14:10:44 EDT
*** Bug 20907 has been marked as a duplicate of this bug. ***
Comment 6 Olivier Thomann CLA 2003-01-15 13:22:59 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 7 Philipe Mulet CLA 2003-06-12 06:36:01 EDT
Resurrecting for 3.0
Comment 8 Olivier Thomann CLA 2003-06-12 15:58:50 EDT
Reopen for 3.0 consideration.
Comment 9 Olivier Thomann CLA 2003-10-03 10:00:25 EDT
This is improved with the new formatter.
Fixed and released in HEAD.
Comment 10 David Audel CLA 2003-10-13 10:36:26 EDT
Verified.