]> source.dussan.org Git - aspectj.git/commitdiff
325731 debug
authoraclement <aclement>
Thu, 28 Apr 2011 16:37:47 +0000 (16:37 +0000)
committeraclement <aclement>
Thu, 28 Apr 2011 16:37:47 +0000 (16:37 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java

index cef0defce8fbf67b894fc3e79b03cb96ef0dd47a..b1293c6620220619e1fb83f8a15933dd9f37b940 100644 (file)
@@ -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();