aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoracolyer <acolyer>2006-06-20 11:12:49 +0000
committeracolyer <acolyer>2006-06-20 11:12:49 +0000
commit791f8a7c3f37d9b10b8ad1692df998733bbc2f20 (patch)
tree114a540dfa4ce5e29fdb33f5b22045356e82e437 /weaver
parent2257fc7638ae9e939cbec9994464a5e1ae36c9ba (diff)
downloadaspectj-791f8a7c3f37d9b10b8ad1692df998733bbc2f20.tar.gz
aspectj-791f8a7c3f37d9b10b8ad1692df998733bbc2f20.zip
tests and fix for pr147845, generic abstract aspect 3+ deep hierarchies
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/TypeVariable.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/weaver/src/org/aspectj/weaver/TypeVariable.java b/weaver/src/org/aspectj/weaver/TypeVariable.java
index f66b95661..13026970a 100644
--- a/weaver/src/org/aspectj/weaver/TypeVariable.java
+++ b/weaver/src/org/aspectj/weaver/TypeVariable.java
@@ -219,23 +219,24 @@ public class TypeVariable {
if (tvrt.hasLowerBound() != (getLowerBound() != null)) return false;
if (tvrt.hasLowerBound() && tvrt.getLowerBound() != getLowerBound()) return false;
// either we both have bounds, or neither of us have bounds
- if ((tvrt.additionalInterfaceBounds != null) != (additionalInterfaceBounds != null)) return false;
+ ReferenceType[] tvrtBounds = tvrt.getAdditionalBounds();
+ if ((tvrtBounds != null) != (additionalInterfaceBounds != null)) return false;
if (additionalInterfaceBounds != null) {
// we both have bounds, compare
- if (tvrt.additionalInterfaceBounds.length != additionalInterfaceBounds.length) return false;
+ if (tvrtBounds.length != additionalInterfaceBounds.length) return false;
Set aAndNotB = new HashSet();
Set bAndNotA = new HashSet();
for (int i = 0; i < additionalInterfaceBounds.length; i++) {
aAndNotB.add(additionalInterfaceBounds[i]);
}
- for (int i = 0; i < tvrt.additionalInterfaceBounds.length; i++) {
- bAndNotA.add(tvrt.additionalInterfaceBounds[i]);
+ for (int i = 0; i < tvrtBounds.length; i++) {
+ bAndNotA.add(tvrtBounds[i]);
}
for (int i = 0; i < additionalInterfaceBounds.length; i++) {
bAndNotA.remove(additionalInterfaceBounds[i]);
}
- for (int i = 0; i < tvrt.additionalInterfaceBounds.length; i++) {
- aAndNotB.remove(tvrt.additionalInterfaceBounds[i]);
+ for (int i = 0; i < tvrtBounds.length; i++) {
+ aAndNotB.remove(tvrtBounds[i]);
}
if (! (aAndNotB.isEmpty() && bAndNotA.isEmpty()) ) return false;
}