diff options
author | acolyer <acolyer> | 2005-08-30 17:08:21 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-30 17:08:21 +0000 |
commit | 6542566aa769b0ba6cf98440bef2ba2699794bea (patch) | |
tree | ec5d1912db4034fcef53aab783ce1ed537551a7e | |
parent | b9ed3b52aee3997fa255891866f5f826b058d61e (diff) | |
download | aspectj-6542566aa769b0ba6cf98440bef2ba2699794bea.tar.gz aspectj-6542566aa769b0ba6cf98440bef2ba2699794bea.zip |
fix for newsgroup reported problem w. assignability matching on type variables
-rw-r--r-- | weaver/src/org/aspectj/weaver/ReferenceType.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/ReferenceType.java b/weaver/src/org/aspectj/weaver/ReferenceType.java index 1a4e36aba..0061e3f99 100644 --- a/weaver/src/org/aspectj/weaver/ReferenceType.java +++ b/weaver/src/org/aspectj/weaver/ReferenceType.java @@ -278,6 +278,11 @@ public class ReferenceType extends ResolvedType { } } + if (other.isTypeVariableReference()) { + TypeVariableReferenceType otherType = (TypeVariableReferenceType) other; + return this.isAssignableFrom(otherType.getUpperBound().resolve(world)); + } + for(Iterator i = other.getDirectSupertypes(); i.hasNext(); ) { if (this.isAssignableFrom((ResolvedType) i.next())) return true; } |