Bug 47132 - Javadoc for method in anonymous type should not be mark as missing
Summary: Javadoc for method in anonymous type should not be mark as missing
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: 51953
  Show dependency tree
 
Reported: 2003-11-20 13:30 EST by David Audel CLA
Modified: 2004-02-13 08:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2003-11-20 13:30:09 EST
1) enabled compiler option "Problems in Javadoc tags"
2) enabled "Missing Javadoc tags in public types, methods and fields"
3) create the following class X.java
/** */
public class X {
  /** */
  public void foo(){
    new Object(){
      public void bar(){
      }
    }
  }
}
4) compile
There is an error message "Javadoc: Missing comment for public declaration".
But the method is in anonymous type and a javadoc are not very useful at this 
location. So complain about this missing javadoc is not necessary.
Comment 1 Frederic Fusier CLA 2003-12-01 04:50:04 EST
Fixed.

While resolving the references in internal.compiler.ast.Javadoc comment, we do 
not report now missing Javadoc errors on @param, @return and @throws tags for 
anonymous types.

Test case added in tests.compiler.regression.JavadocTestMixed
Comment 2 David Audel CLA 2003-12-16 11:32:10 EST
Verified fir 3.0M6.