| 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: | Core | Assignee: | 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: | |||
This problem no longer occurs after the formatter redesign. *** This bug has been marked as a duplicate of bug 303519 *** Verified for Eclipse Oxygen 4.7 M6 Build id: I20170305-2000 |
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() { } }