Community
Participate
Working Groups
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.
Fixed and released in HEAD. The binding for an annotation type member declaration is indeed a IMethodBinding and not a IVariableBinding.
Verified (in I20041214-2000) that AnnotationTypeMemberDeclaration.resolveBinding() returns an IMethodBinding