From 6bfec8fd15f67679d6073cf6ee555d18253c4ef3 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 28 Apr 2011 16:37:47 +0000 Subject: [PATCH] 325731 debug --- .../src/org/aspectj/weaver/ReferenceType.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); -- 2.39.5