View | Details | Raw Unified | Return to bug 233224
Collapse All | Expand All

(-)formatter/org/eclipse/jdt/internal/formatter/FormatterCommentParser.java (-1 / +1 lines)
Lines 176-182 Link Here
176
		this.invalidTagName = true;
176
		this.invalidTagName = true;
177
		return null;
177
		return null;
178
	}
178
	}
179
	this.tagSourceStart = this.scanner.getCurrentTokenStartPosition();
179
	this.tagSourceStart = previousPosition;
180
	this.tagSourceEnd = this.scanner.getCurrentTokenEndPosition();
180
	this.tagSourceEnd = this.scanner.getCurrentTokenEndPosition();
181
	char[] tagName = this.scanner.getCurrentIdentifierSource();
181
	char[] tagName = this.scanner.getCurrentIdentifierSource();
182
    return tagName;
182
    return tagName;
(-)src/org/eclipse/jdt/core/tests/formatter/FormatterCommentsBugsTest.java (+10 lines)
Lines 188-191 Link Here
188
	this.preferences.comment_line_length = 40;
188
	this.preferences.comment_line_length = 40;
189
	formatUnit("bugs.b232466", "X02.java");
189
	formatUnit("bugs.b232466", "X02.java");
190
}
190
}
191
192
/**
193
 * @bug 233224: [formatter] References of inlined tags are still split in certain circumstances
194
 * @test Ensure that doclet tags are preserved while formatting
195
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=233224"
196
 */
197
public void testBug233224() throws JavaModelException {
198
	this.preferences.comment_line_length = 40;
199
	formatUnit("bugs.b233224", "X01.java");
200
}
191
}
201
}
(-)workspace/FormatterJavadoc/test/bugs/b233224/out/X01.java (+10 lines)
Added Link Here
1
public class X01 {
2
3
	/**
4
	 * @ejb:interface-method test format
5
	 *                       of doclet
6
	 *                       tags
7
	 */
8
	void foo() {
9
	}
10
}
(-)workspace/FormatterJavadoc/test/bugs/b233224/X01.java (+8 lines)
Added Link Here
1
public class X01 {
2
3
  /**
4
   * @ejb:interface-method test format of doclet tags
5
   */
6
	void foo() {
7
	}
8
}

Return to bug 233224