Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

@see and @link issues with generics

843810Apr 2 2005 — edited Apr 2 2005
Hi,
Is there any documentation on how to write @see and @link tags that refer to generic classes or methods?
Here's an example:
public interface MyInterface<T>
{
    public void doSomething(T param);
}
Now, when I write an implementation of this interface, e.g.:
public MyImplementation implements MyInterface<String>
{
  /**
   * Some comment.
   * @param param antoher comment
   * @see MyInterface#doSomething(T)
  */
   public void doSomething(String param)
   {
       // ... whatever ...
    }
}
The javadoc tool gives me a warning:
MyImplementation.java:xx: warning - Tag @see: can't find doSomething(T) in MyInterface
How should I write the reference so that it doesn't generate a warning?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2005
Added on Apr 2 2005
1 comment
69 views