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

Bug 248543

Summary: [formatter] Comment formatter takes 2 passes to format when a tag is located just after a reference
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Mateusz Matela <mateusz.matela>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 CC: manoj.palat, mateusz.matela
Version: 3.4   
Target Milestone: 4.7 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2008-09-25 05:27:50 EDT
Using 3.4.0 and 3.4.1

The following test case:
public class X {

    /**
     * Test case showing the problem:
     * 
     * @see java.lang.RuntimeException @see java.lang.String
     */
    public void foo() {
    }
}

Using Eclipse built-in + max line length=40 and Tab policy=Spaces only, is formatted as follow:
public class X {

    /**
     * Test case showing the problem:
     * 
     * @see java.lang.RuntimeException
     *      @see java.lang.String
     */
    public void foo() {
    }
}

If you format again using the same settings, then you get a different output:
public class X {

    /**
     * Test case showing the problem:
     * 
     * @see java.lang.RuntimeException
     * @see java.lang.String
     */
    public void foo() {
    }
}
Comment 1 Mateusz Matela CLA 2017-02-10 09:12:24 EST
This problem no longer occurs after the formatter redesign.

*** This bug has been marked as a duplicate of bug 303519 ***
Comment 2 Manoj N Palat CLA 2017-03-07 09:17:10 EST
Verified for Eclipse Oxygen 4.7 M6 Build id: I20170305-2000