Bug 82538

Summary: [javadoc] Missing javadoc in method declaration
Product: [Eclipse Project] JDT Reporter: Tobias Widmer <tobias_widmer>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: All   
Whiteboard:

Description Tobias Widmer CLA 2005-01-11 05:42:51 EST
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
Comment 1 Frederic Fusier CLA 2005-01-11 06:34:56 EST
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...
Comment 2 Tobias Widmer CLA 2005-01-11 06:45:45 EST
Its indeed a dup of bug 80221

*** This bug has been marked as a duplicate of 80221 ***
Comment 3 Frederic Fusier CLA 2005-04-01 10:21:50 EST
Verified for 3.1 M6 using build I20050330-0500.