From: aclement Date: Thu, 28 Apr 2011 16:37:47 +0000 (+0000) Subject: 325731 debug X-Git-Tag: V1_6_12M1~57 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6bfec8fd15f67679d6073cf6ee555d18253c4ef3;p=aspectj.git 325731 debug --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java index cef0defce..b1293c662 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java @@ -1049,7 +1049,12 @@ public class ReferenceType extends ResolvedType { ret.append(rawSig.substring(0, rawSig.length() - 1)); ret.append("<"); for (int i = 0; i < someParameters.length; i++) { - ret.append(((ReferenceType) someParameters[i]).getSignatureForAttribute()); + try { + ret.append(((ReferenceType) someParameters[i]).getSignatureForAttribute()); + } catch (ClassCastException cce) { + throw new IllegalStateException("DebugFor325731: expected a ReferenceType but was "+someParameters[i]+ + " of type "+someParameters[i].getClass().getName(),cce); + } } ret.append(">;"); return ret.toString();