Community
Participate
Working Groups
Using build I200402190800. When a text line in Javadoc comment starts or ends with opening or closing brace (ie. '{' or '}'), then its starting position or length is incorrect. Here's a sample which shows this specific issue: public class X { /** * Text element starting with a * { caused troubles in its position * if the bug is not fixed * @see Object */ Object x1; /** * Text element ending with a } * caused troubles in its position * if the bug is not fixed * @see Object */ Object x2; /** * Text element starting with a * } caused troubles in its position * if the bug is not fixed * @see Object */ Object x3; /** * Text element ending with a { * caused troubles in its position * if the bug is not fixed * @see Object */ Object x4; /** * Text element starting with * { and ending with } * caused troubles in its position * if the bug is not fixed * @see Object */ Object x6; /** * Text element starting with * } and ending with { * caused troubles in its position * if the bug is not fixed * @see Object */ Object x7; }
Fixed. Now text fragment starting or ending with opening or closing braces have correct start position and length. [jdt-core-internal] Modify start and end position indexes stored in method parseComment(int,int) of AbstractCommentParser class. Regression tests added in jdt.core.tests.dom.ASTConverterJavadocTest
Verified in I200403240010.