Bug 122616 - [javadoc] IMember.getCategories() only returns first category
Summary: [javadoc] IMember.getCategories() only returns first category
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-04 07:04 EST by Dani Megert CLA
Modified: 2006-02-14 11:34 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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