Skip to content

Commit

Permalink
Fix test0164 - getDeclaringMethod() should return the declaration bin…
Browse files Browse the repository at this point in the history
…ding

Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker authored and mickaelistria committed Oct 15, 2024
1 parent 7e069be commit e230daa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,10 @@ public IMethodBinding getDeclaringMethod() {
do {
if (parentSymbol instanceof final MethodSymbol method) {
if (method.type instanceof Type.MethodType methodType) {
return this.resolver.bindings.getMethodBinding(methodType, method, null, isGeneric);
return this.resolver.bindings.getMethodBinding(methodType, method, null, true);
}
if( method.type instanceof Type.ForAll faType && faType.qtype instanceof MethodType mtt) {
IMethodBinding found = this.resolver.bindings.getMethodBinding(mtt, method, null, isGeneric);
IMethodBinding found = this.resolver.bindings.getMethodBinding(mtt, method, null, true);
return found;
}
return null;
Expand Down

0 comments on commit e230daa

Please sign in to comment.