Skip to content

Commit

Permalink
Fix ASTConverter15JLS8Test.test0002 - method binding for annotation type
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed May 29, 2024
1 parent 96f3398 commit 982aece
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,16 @@ IMethodBinding resolveMethod(MethodReference methodReference) {
}
return null;
}

IMethodBinding resolveMember(AnnotationTypeMemberDeclaration member) {
resolve();
JCTree javacElement = this.converter.domToJavac.get(member);
if (javacElement instanceof JCMethodDecl methodDecl) {
return canonicalize(new JavacMethodBinding(methodDecl.type.asMethodType(), methodDecl.sym, this));
}
return null;
}


@Override
IMethodBinding resolveMember(AnnotationTypeMemberDeclaration member) {
Expand Down

0 comments on commit 982aece

Please sign in to comment.