aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher/src
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2012-11-27 17:35:48 -0800
committerAndy Clement <andrew.clement@gmail.com>2012-11-27 17:35:48 -0800
commit43166c3e88e824e8709d50b243121740b0a1e81b (patch)
tree784ac62c116d7f5fda036984ec0e5aaab93aeb22 /org.aspectj.matcher/src
parent3e5af0fdccbe49653ddd59f05e14e33c177c5fc4 (diff)
downloadaspectj-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.java12
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(">;");