Community
Participate
Working Groups
The compiler warnings for malformed Javadoc is sensitive to text split over several lines, which happens if the Javadoc is formatted quite often Take this Javadoc comment: * @see CompletionProposal#CompletionProposal(java.lang.String, int, int, int) and put a line break in the argument list * @see CompletionProposal#CompletionProposal(java.lang.String, int, int, * int) The 'Malformed Javadoc' compiler option says 'Javadoc: Invalid parameters declaration' I think this happens with the @see tag since other tags with split arguments didn't have a problem.
Not sure whether we are allowed to break see tags, if not, the javadoc formatting needs to avoid that. Moving to core for comments.
[Does not seem to be a Mac problem. Removed Mac tags.]
We indeed treat Javadoc on a per line basis. Need to double check expected behavior. If proven that we are indeed wrong, then this would need to be addressed along with other doclet tags support.
Fixed. Changes done in jdt.internal.compiler.parser.JavadocParser.readToken(). Loop on '*' character (TerminalTokens.TokenNameMULTIPLY) when new line has been encountered. This imply that while parsing tags, last token was not consumed to avoid skipping next tag definition. For example: /** * @see String * @see Integer */ void foo() {} parse of first @see tag will stop at following token '@' (TokenNameERROR). If we consume it, then loop in checkDeprecation would restart at 's' character of next see tag and will missed the declaration! Test cases added in jdt.core.tests.compiler.regression.JavadocTestMixed.
Verified for 3.0M7
*** Bug 47420 has been marked as a duplicate of this bug. ***