Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 248543 - [formatter] Comment formatter takes 2 passes to format when a tag is located just after a reference
Summary: [formatter] Comment formatter takes 2 passes to format when a tag is located ...
Status: VERIFIED DUPLICATE of bug 303519
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: 4.7 M6   Edit
Assignee: Mateusz Matela CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-25 05:27 EDT by Frederic Fusier CLA
Modified: 2017-03-07 09:17 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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