Community
Participate
Working Groups
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.
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
Verified fir 3.0M6.