Bug 125903 - [javadoc] Treat whitespace in javadoc tags as invalid tags
Summary: [javadoc] Treat whitespace in javadoc tags as invalid tags
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-31 14:38 EST by John Arthorne CLA
Modified: 2006-02-14 12:25 EST (History)
0 users

See Also:


Attachments
Patch to fix this issue (7.22 KB, patch)
2006-02-01 10:30 EST, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2006-01-31 14:38:11 EST
I20060125

If there is whitespace between the "@" and the name of a javadoc tag, javadoc treats this as invalid.  However, the javadoc parser in Eclipse does not treat this as an error.  For example, these cases should be reported as invalid tags:

/**
 * {@ link java.lang.String}
 * @ since 2.1
 */
Comment 1 Frederic Fusier CLA 2006-02-01 10:30:53 EST
Created attachment 33941 [details]
Patch to fix this issue

JavadocParser and DocComment parsers now verify that character following '@' is not a whitespace...

Test case added in JavaSearchBugsTests and ASTConverterJavadocTest
Comment 2 Frederic Fusier CLA 2006-02-01 10:31:14 EST
Released in HEAD.
Comment 3 David Audel CLA 2006-02-14 12:25:08 EST
Verified for 3.2 M5 using build I20060214-0010