diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java index 2ec363d3648..c13898dcfdc 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java @@ -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;