Bug 125676

Summary: [javadoc] @category should not read beyond end of line
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
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 XP   
Whiteboard:

Description Philipe Mulet CLA 2006-01-30 04:42:53 EST
Version: 3.2.0
Build id: I20060125-0800

The following javadoc yields "@category When" which feels inappropriate.
I would expect category reading to not continue on next line.

	/**
	 * @category 
	 * When searching for field matches, it will exclusively find read accesses, as
	 * opposed to write accesses. Note that some expressions are considered both
	 * as field read/write accesses: for example, x++; x+= 1;
	 * 
	 * @since 2.0
	 */
	int READ_ACCESSES = 4;
Comment 1 Frederic Fusier CLA 2006-01-31 05:03:33 EST
Fixed and released in HEAD.

SourceJavadocParser does no longer read words on next line for categories identifiers. However, in your example following lines are still associated with @category tag...

Test cases added in ASTConverterJavadocTest, ClassFileTest (testGetCategories07-09) and CompilationUnitTest (testGetCategories14-15).
Comment 2 David Audel CLA 2006-02-14 12:23:05 EST
Verified for 3.2 M5 using build I20060214-0010