diff options
author | acolyer <acolyer> | 2005-08-19 07:59:47 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-19 07:59:47 +0000 |
commit | cfe61d6ce06def3e24d1c62e047cd029c6f1f428 (patch) | |
tree | 10225676e85d5234bd20ca42171baa7504eb099b | |
parent | 63bbfa1b26251a7141f15852da8c6024a1a345ed (diff) | |
download | aspectj-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.java | 5 |
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() +")"; } |