Bug 65253 - [Javadoc] @@tag is wrongly parsed as @tag
Summary: [Javadoc] @@tag is wrongly parsed as @tag
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 RC2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-02 06:04 EDT by Frederic Fusier CLA
Modified: 2004-06-11 08:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2004-06-02 06:04:28 EDT
Using 3.0 RC1.

Take following example:
/**
 * Comment 
 * @@@@see Object Should not be a TagElement
 */
public class Test {
	/**
	 * Comment
	 * @@@param str Should not be a tag element
	 * @@return int Should not be a tag element 
	 */
	int foo(String str) {
		return 0;
	}
}

In ASTView @@@@see is stored as @see, @@@param as @param and @@return as @return
tags in DOM/AST Javadoc objects hierarchy.

Also, if I turn option 'Missing Javdoc tags' on, then no error are signaled
although I should have 2 missing tag warnings!
Comment 1 Frederic Fusier CLA 2004-06-02 06:05:58 EDT
It's a side effect of bug 51660 fix.
Comment 2 Frederic Fusier CLA 2004-06-03 12:02:39 EDT
See bug 65174 for proposed fix...
Comment 3 Frederic Fusier CLA 2004-06-08 13:28:58 EDT
Fixed.

Now @@tag is not parsed as a valid tag.

[jdt-core-internal]
Changes done in AbstractCommentParser.parseComment(int,int)
Test case added in JavadocTestMixed + ASTConverterJavadocTests
Comment 4 David Audel CLA 2004-06-11 08:06:06 EDT
Verified for 3.0RC2