diff options
author | aclement <aclement> | 2008-05-30 17:23:59 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-05-30 17:23:59 +0000 |
commit | f85b7f7da6334ea8606abaf8b6dc3dc9e2460a7f (patch) | |
tree | 517ec5ee1f4ae907c0f3f47164932646e36f5c3f /weaver | |
parent | 6cb4a2771d84e0397687be08a2902421b414df23 (diff) | |
download | aspectj-f85b7f7da6334ea8606abaf8b6dc3dc9e2460a7f.tar.gz aspectj-f85b7f7da6334ea8606abaf8b6dc3dc9e2460a7f.zip |
231396: reworked wildcard handling
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/ReferenceType.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/ReferenceType.java b/weaver/src/org/aspectj/weaver/ReferenceType.java index 9f00c2f27..782a5dc04 100644 --- a/weaver/src/org/aspectj/weaver/ReferenceType.java +++ b/weaver/src/org/aspectj/weaver/ReferenceType.java @@ -304,8 +304,11 @@ public class ReferenceType extends ResolvedType { for (int i = 0; i < myParameters.length; i++) { if (!myParameters[i].isGenericWildcard()) { wildcardsAllTheWay = false; - } else if (myParameters[i].isExtends() || myParameters[i].isSuper()) { - wildcardsAllTheWay = false; + } else { + BoundedReferenceType boundedRT = (BoundedReferenceType) myParameters[i]; + if (boundedRT.isExtends() || boundedRT.isSuper()) { + wildcardsAllTheWay = false; + } } } if (wildcardsAllTheWay && !other.isParameterizedType()) return true; |