aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-30 17:08:21 +0000
committeracolyer <acolyer>2005-08-30 17:08:21 +0000
commit6542566aa769b0ba6cf98440bef2ba2699794bea (patch)
treeec5d1912db4034fcef53aab783ce1ed537551a7e
parentb9ed3b52aee3997fa255891866f5f826b058d61e (diff)
downloadaspectj-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.java5
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;
}