Community
Participate
Working Groups
20050104: Steps to reproduce: public class Test<T> { /** * This is a method * @param f * @return a t * @throws RuntimeException */ public T getT(int f) throws RuntimeException { return null; } } - Enable mark occurrences - Click on RuntimeException in the throws clause -> No highlighting in javadoc -> Same behavior with no return type and non-generic class -> Debugging ASTConverter shows that the internal MethodDeclaration node contains no javadoc node
Cannot reproduce using same build. With your test case, I can see Javadoc on method declaration using ASTView. Also, if you remove f in line @param f, I can see javadoc warning... Are you sure you've activated javadoc option? In case yes, perhaps your test case is slightly different and this could be a duplicate of bug 80221: if you remove T from method declaration (ie. have a compiler error) then no javadoc is set on method declaration... Note that the fact that reference is not highlighted in Javadoc seems to be a JDT/UI issue as searching for RuntimeException in project found correctly the reference in Javadoc...
Its indeed a dup of bug 80221 *** This bug has been marked as a duplicate of 80221 ***
Verified for 3.1 M6 using build I20050330-0500.