From: acolyer Date: Mon, 11 Jul 2005 09:38:48 +0000 (+0000) Subject: fixes dumb array cast X-Git-Tag: PRE_ANDY~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1c4f43eb3b48379851f66e6bcb2334230a6927ee;p=aspectj.git fixes dumb array cast --- 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())); }