Bug 79109

Summary: [1.5][DOM] AnnotationTypeMemberDeclaration.resolveBinding() might return a IMethodBinding
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2004-11-19 15:44:01 EST
It appears the annotation type member declaration are persisted in .class file
as MethodInfo (abstract method that contains an optional AnnotationDefault
attribute).
So we might want to change the signature of
AnnotationTypeMemberDeclaration.resolveBinding() method to return a
IMethodBinding instead of a IVariableBinding.
This should be done only when all the bindings for annotation are created.
Comment 1 Olivier Thomann CLA 2004-11-25 16:50:04 EST
Fixed and released in HEAD.
The binding for an annotation type member declaration is indeed a IMethodBinding
and not a IVariableBinding.
Comment 2 Jerome Lanneluc CLA 2004-12-15 07:11:06 EST
Verified (in I20041214-2000) that
AnnotationTypeMemberDeclaration.resolveBinding() returns an IMethodBinding