Bug 79109 - [1.5][DOM] AnnotationTypeMemberDeclaration.resolveBinding() might return a IMethodBinding
Summary: [1.5][DOM] AnnotationTypeMemberDeclaration.resolveBinding() might return a IM...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-19 15:44 EST by Olivier Thomann CLA
Modified: 2004-12-15 07:11 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 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