Bug 102735 - [javadoc][assist] Code assist for @link should not insert type variables for method argument
Summary: [javadoc][assist] Code assist for @link should not insert type variables for ...
Status: RESOLVED DUPLICATE of bug 87868
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 101283
Blocks:
  Show dependency tree
 
Reported: 2005-07-05 10:39 EDT by Garret Wilson CLA
Modified: 2005-10-10 11:22 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 Garret Wilson CLA 2005-07-05 10:39:57 EDT
I have the following interfaces:

public interface SelectControl<V, R extends Component<?>, C extends
SelectControl<V, R, C>> extends Control<SelectModel<V>, C>
{
	public interface ValueRepresentationStrategy<VV, RR extends Component<?>>
extends ComponentFactory<VV, RR>
	{
		public String getID(final VV value);
	}
}

I add the following comment line to the getID() method:

/**This value must be equal to the ID of the component returned by the {@link
ComponentFactory#createComponent(V)} method.*/

(The @link used Eclipse completion to generate the V argument.)

This creates a "Missing code implementation in the compiler" mark on line 1 in
the Eclipse IDE---presumably because @link references V (from the enclosing
interface) rather than VV (from the nested interface), and the former has
nothing to do with ComponentFactory.

So I change the comment line to:

/**This value must be equal to the ID of the component returned by the {@link
ComponentFactory#createComponent(VV)} method.*/

Everything compiles, but Eclipse now thinks my JavaDoc reference is incorrect.

Garret
Comment 1 Philipe Mulet CLA 2005-07-05 10:53:33 EDT
Looks like dup of bug 101283
Comment 2 Frederic Fusier CLA 2005-07-05 11:45:29 EDT
I confirm this is a duplicate

*** This bug has been marked as a duplicate of 101283 ***
Comment 3 Frederic Fusier CLA 2005-07-06 12:24:57 EDT
Bug 83127 stated that method reference in @see or @link tags with explicit type
should not use type variables but their substitute instead as javadoc.exe does.
So, in this test case, correct @link should be:
/**This value must be equal to the ID of the component returned by the {@link
ComponentFactory#createComponent(Object)} method.*/
Comment 4 Frederic Fusier CLA 2005-07-06 12:25:56 EDT
Move to JDT/UI as code completion in javadoc is done in UI land...
Comment 5 Martin Aeschlimann CLA 2005-09-20 09:01:43 EDT
Moving all javadoc code assist bugs to jdt.core so they can be handled in the
new jdt.core implementation.
Comment 6 Frederic Fusier CLA 2005-10-10 11:22:12 EDT

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