Bug 122616

Summary: [javadoc] IMember.getCategories() only returns first category
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jerome_lanneluc
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dani Megert CLA 2006-01-04 07:04:03 EST
I20060103-0800

IMember.getCategories() does not return all categories.

Have
/**
 * @catogory category1 category2
 */
String f;

==> only category1 is returned.

See also http://www.javac.info/doc?n=JavaDoc.CategoryTags
Comment 1 Frederic Fusier CLA 2006-01-04 07:23:43 EST
Seems to be a problem in SourceJavadocParser, I'll have a look at it...
Comment 2 Frederic Fusier CLA 2006-01-05 03:12:37 EST
Fixed and released in HEAD.

Add reading of all identifiers in SourceJavadocParser.parseIdentifierTag(boolean) and fix previous implementation in parseSimpleTag().

As specification is not finalized, we currently do not raise any warning if syntax is different than description done in http://www.javac.info/doc?n=JavaDoc.CategoryTags

Test cases testGetCategories* and testGetChidlren* completed in ClassFileTests and CompilationUnitTests. Exisiting test cases have been modified in CompilationUnitTests to systematically check javadoc comments (consider that ClassFileTests tests are enough to test behavior while not checking javadoc comment).
Comment 3 David Audel CLA 2006-02-14 11:34:05 EST
Verified for 3.2 M5 using build I20060214-0010