summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-19 07:59:47 +0000
committeracolyer <acolyer>2005-08-19 07:59:47 +0000
commitcfe61d6ce06def3e24d1c62e047cd029c6f1f428 (patch)
tree10225676e85d5234bd20ca42171baa7504eb099b
parent63bbfa1b26251a7141f15852da8c6024a1a345ed (diff)
downloadaspectj-cfe61d6ce06def3e24d1c62e047cd029c6f1f428.tar.gz
aspectj-cfe61d6ce06def3e24d1c62e047cd029c6f1f428.zip
overrides getOwningClass from MethodBinding to ensure correct results in some of the new JDT generics compatibility checks.
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeMethodBinding.java5
1 files changed, 5 insertions, 0 deletions
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() +")";
}