Bug 45596 - Wrongly complains about missing parameter javadoc entry in anonymous class
Summary: Wrongly complains about missing parameter javadoc entry in anonymous class
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 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-27 09:11 EST by Jerome Lanneluc CLA
Modified: 2003-11-20 10:38 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 Jerome Lanneluc CLA 2003-10-27 09:11:56 EST
Build 20031023

In org.eclipse.jdt.core.CorrectionEngine, the anonymous class for the 
completionRequestor field has a warning for a Missing javadoc on the 
acceptAnonymousType(...) method. This method as no javadoc at all, so it should 
not complain.
Comment 1 Frederic Fusier CLA 2003-10-27 12:58:42 EST
Problem comes from misplaced set of annotation for field references.
Initially put in consumeFieldDeclaration, this appears to be too late as 
typically field initialisation might contain javadoc comments...
Here this is the opposite effect as the field annotation were used for the 
first method of the anonymous class which complains that parameters javadoc 
entries were missing.

Fixed by moving set of the field annotation in FieldDeclaration inside the 
consumeEnterVariable.
Comment 2 Frederic Fusier CLA 2003-10-27 13:03:14 EST
Test case testBug45596 added in AnnotationTestMixed
Comment 3 David Audel CLA 2003-11-20 10:38:57 EST
Verified.