Bug 51617 - Mark occurences not always working with JavaDoc @param tag
Summary: Mark occurences not always working with JavaDoc @param tag
Status: RESOLVED DUPLICATE of bug 51600
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 M9   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 07:05 EST by Christof Marti CLA
Modified: 2005-04-29 07:14 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 Christof Marti CLA 2004-02-11 07:05:45 EST
Test case:
- open TestCase
- goto setName()
- set caret on 'name' of @param tag
-> occurences highlighting works
- insert the following line directly *before* the @param line:
	 * @exception Throwable
- set caret on 'name' of @param tag
-> occurences highlighting no longer works
Comment 1 Dani Megert CLA 2004-02-11 11:29:35 EST
This is provided by Martin's new feature.
Comment 2 Martin Aeschlimann CLA 2004-03-19 15:01:23 EST
moving to jdt.core:
The added '@exception e' prevents the AST to get bindings on the @param's name
class A {
	/**
	 * Sets the name of a TestCase
	 * @exception e
	 * @param name The name to set
	 */
	public void setName(String name) {
	}
}
Comment 3 Frederic Fusier CLA 2004-03-24 16:27:04 EST
Provided test case contains 2 problems:
- Javadoc: e cannot be resolved or is not a type
- Javadoc: Unexpected tag (@param tags has to be declared before @exception)

So, AST Javadoc hierarchy is not valid... 

*** This bug has been marked as a duplicate of 51600 ***