Bug 47339 - Javadoc problem while using @see tag
Summary: Javadoc problem while using @see tag
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-24 08:34 EST by Jacques Leclercq CLA
Modified: 2015-05-07 10:12 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 Jacques Leclercq CLA 2003-11-24 08:34:15 EST
I am working with 3.0 M5 and I doesn't ignore problem in Javadoc Tags:

when I use @see, JDT gives problem for missing tags which are described in the 
Javadoc of the indicated method in the @see tag
Comment 1 Dirk Baeumer CLA 2003-11-24 10:23:12 EST
Jacques, can you provide an example.

Moving to JDT/Core since the provide the comment checker.
Comment 2 Jacques Leclercq CLA 2003-11-25 01:51:09 EST
/**
 * @see org.eclipse.core.internal.events.InternalBuilder#build(int, 
java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
*/
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws 
CoreException

I receive a missing tag for @return, kind, args, monitor and CoreException but 
this is already described through the @see.
Comment 3 Philipe Mulet CLA 2003-11-25 06:34:49 EST
We should allow to delegate Javadoc in the form of a unique @see tag which 
corresponds to an existing method (defined in superclass/interface) and matches 
the current selector and arguments.

If so, then we shouldn't complain at all.
Comment 4 Frederic Fusier CLA 2003-12-01 04:50:34 EST
Fixed.

Now, when a @see tags with a reference to a super method is done in Javadoc 
comment, then we do not report missing Javadoc errors for methods and 
constructors.

Note that this reference may not be the only tag of the comment.

Note also that invalid syntax or unresolved references are still always 
reported for @param and @throws tags if some of them are written in the comment 
additionaly to the @see super method reference.

For example, while compiling following class:
public class X implements Comparable {
	/**
	 * @param x
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
	 */
	public int compareTo(Object o) {
		return 0;
	}
}
compiler will still complain on x in @param declaration as it is an invalid 
parameter name...

Test cases added in tests.compiler.regression.JavadocTestMixed
Comment 5 Martin Aeschlimann CLA 2003-12-01 12:43:40 EST
Note that in
/**
 * @see org.eclipse.core.internal.events.InternalBuilder#build(int, 
java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
*/

there are really tags missing. Use a non-javadoc comment if you want to inherit 
the comment from the overridden method
Comment 6 David Audel CLA 2003-12-16 10:12:24 EST
Verified for 3.0M6.

Work as described in comment 4.