diff options
author | acolyer <acolyer> | 2005-07-11 09:38:48 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-07-11 09:38:48 +0000 |
commit | 1c4f43eb3b48379851f66e6bcb2334230a6927ee (patch) | |
tree | 35ce7562882778db8eeb5e3e92d0c881466abc4c /weaver | |
parent | 40a4a1570c558b65410089b1620963ed603bd2b5 (diff) | |
download | aspectj-1c4f43eb3b48379851f66e6bcb2334230a6927ee.tar.gz aspectj-1c4f43eb3b48379851f66e6bcb2334230a6927ee.zip |
fixes dumb array cast
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/TypeVariableReferenceType.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/TypeVariableReferenceType.java b/weaver/src/org/aspectj/weaver/TypeVariableReferenceType.java index 91fde77c5..37eed50da 100644 --- a/weaver/src/org/aspectj/weaver/TypeVariableReferenceType.java +++ b/weaver/src/org/aspectj/weaver/TypeVariableReferenceType.java @@ -27,8 +27,12 @@ public class TypeVariableReferenceType extends BoundedReferenceType { this.isSuper = false; this.upperBound = (ReferenceType) aTypeVariable.getUpperBound(); this.lowerBound = (ReferenceType) aTypeVariable.getLowerBound(); - if (aTypeVariable.getAdditionalInterfaceBounds().length > 0) { - this.additionalInterfaceBounds = (ReferenceType[]) aTypeVariable.getAdditionalInterfaceBounds(); + TypeX[] ifBounds = aTypeVariable.getAdditionalInterfaceBounds(); + if (ifBounds.length > 0) { + this.additionalInterfaceBounds = new ReferenceType[ifBounds.length]; + for (int i = 0; i < ifBounds.length; i++) { + this.additionalInterfaceBounds[i] = (ReferenceType) ifBounds[i]; + } } setDelegate(new ReferenceTypeReferenceTypeDelegate((ReferenceType)aTypeVariable.getUpperBound())); } |