Community
Participate
Working Groups
On code like: /** Constructs a {@link FooTokenizer} filtered by a {@link * BarFilter}, a {@link BazFilter}, and a {@link FlooFilter}. */ public final TokenStream tokenStream(String fieldName, Reader reader) { //... turning the preference Java > Compiler > Javadoc > Malformed Javadoc comments to Warning causes a spurious "Missing reference" error on that second @link that's split between lines. Since the javadoc tool doesn't care, should Eclipse? (On 3.0RC1)
It seems there's a problem due to the fact that splitted link tag is on first line of javadoc comment. It does not occur with following comment: /** * Constructs a {@link FooTokenizer} filtered by a {@link * BarFilter}, a {@link BazFilter}, and a {@link FlooFilter}. */ public final TokenStream tokenStream(String fieldName, Reader reader) { //... I'll investigate...
Created attachment 11544 [details] Fixes and tests for 65174, 65253, 65288 bugs As fixes for these three bugs were in same method of AbstractCommentParsre, it was easier to bundle them in only on patch file. bug 65174: line end init value was incorrect. Instead of javadoc start position, we had to initialize it with line end of javadoc start position. bug 65253: remove test for java identifier start when '@' is encountered at line start (introduced while fixing bug 51660). This wrongly let parser think that it was always at start of line even after several '@' characters... bug 65288: remove '*' as valid character for tag names. This made parser skip end of comment in described test case.
Created attachment 11589 [details] New fixes and tests for 65174, 65253, 65288 bugs New fixes and tests due to some regressions in "massive" AST Javadoc tests with previous one... This one pass all tests: - AllJDTCore - JDT/UI: Automated + Refactoring - Massive: ASTConverterJavadoc + DefaultCommentMapper Note that all tests were run with patch for bug 65180
Fixed. No error signaled now in this peculiar case. [jdt-core-internal] Changes done in AbstractCommentParser. Also fix minor problem with line start which had a minor impact on some TextElement start position... Test case added in JavadocTestMixed + ASTConverterJavadocTests
Verified for 3.0RC2