From cfe61d6ce06def3e24d1c62e047cd029c6f1f428 Mon Sep 17 00:00:00 2001 From: acolyer Date: Fri, 19 Aug 2005 07:59:47 +0000 Subject: overrides getOwningClass from MethodBinding to ensure correct results in some of the new JDT generics compatibility checks. --- .../ajdt/internal/compiler/lookup/InterTypeMethodBinding.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeMethodBinding.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeMethodBinding.java index fed5d0b3b..290c9ee15 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeMethodBinding.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeMethodBinding.java @@ -144,6 +144,11 @@ public class InterTypeMethodBinding extends MethodBinding { return targetType; } + // override method in MethodBinding to ensure correct behaviour in some of JDTs generics checks. + public ReferenceBinding getOwningClass() { + return targetType; + } + public String toString() { return "InterTypeMethodBinding(" + super.toString() + ", " + getTargetType() +")"; } -- cgit v1.2.3