Community
Participate
Working Groups
20041205 Look at the AST in the following code with a missing return type: /** * */ private foo() { return 1; } The AST does not contain a Javadoc node.
*** Bug 82538 has been marked as a duplicate of this bug. ***
Fixed. As method return type is missing, compiler first creates a ConstructorDeclaration. Recovery changes this ConstructorDeclaration to MethodDeclaration but forgot to copy javadoc while doing this... Now, invalid method as its javadoc correctly set [jdt-core-internal] Change done in Parser.convertToMethodDeclaration(...) Test case added in ASTConverterJavadocTest
Verified in I20050330-0500