From e230daa150eb4ce11da2df905586fa1262949baf Mon Sep 17 00:00:00 2001 From: Rob Stryker Date: Fri, 11 Oct 2024 16:35:17 -0400 Subject: [PATCH] Fix test0164 - getDeclaringMethod() should return the declaration binding Signed-off-by: Rob Stryker --- .../org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;