Bug 125903

Summary: [javadoc] Treat whitespace in javadoc tags as invalid tags
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Patch to fix this issue none

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