diff options
author | Andy Clement <andrew.clement@gmail.com> | 2012-11-27 17:35:48 -0800 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2012-11-27 17:35:48 -0800 |
commit | 43166c3e88e824e8709d50b243121740b0a1e81b (patch) | |
tree | 784ac62c116d7f5fda036984ec0e5aaab93aeb22 /org.aspectj.matcher/src | |
parent | 3e5af0fdccbe49653ddd59f05e14e33c177c5fc4 (diff) | |
download | aspectj-43166c3e88e824e8709d50b243121740b0a1e81b.tar.gz aspectj-43166c3e88e824e8709d50b243121740b0a1e81b.zip |
325731
Diffstat (limited to 'org.aspectj.matcher/src')
-rw-r--r-- | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java index 97e9f5fc6..c8b1c777f 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java @@ -1031,11 +1031,13 @@ public class ReferenceType extends ResolvedType { ret.append(rawSig.substring(0, rawSig.length() - 1)); ret.append("<"); for (int i = 0; i < someParameters.length; i++) { - 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); + if (someParameters[i] instanceof ReferenceType) { + ret.append(((ReferenceType)someParameters[i]).getSignatureForAttribute()); + } else if (someParameters[i] instanceof Primitive) { + ret.append(((Primitive)someParameters[i]).getSignatureForAttribute()); + } else { + throw new IllegalStateException("DebugFor325731: expected a ReferenceType or Primitive but was " + someParameters[i] + + " of type " + someParameters[i].getClass().getName()); } } ret.append(">;"); |