diff options
author | acolyer <acolyer> | 2004-07-29 10:33:44 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-07-29 10:33:44 +0000 |
commit | 770a4d6a1474764dd24e292e0404c04c44f33d90 (patch) | |
tree | 612b7a7f0f7853ff36289261c859aaded6e1b301 | |
parent | fdff68edb5e7e5ec93b7a71ee11b9fe635c88bc8 (diff) | |
download | aspectj-770a4d6a1474764dd24e292e0404c04c44f33d90.tar.gz aspectj-770a4d6a1474764dd24e292e0404c04c44f33d90.zip |
fix for Bugzilla Bug 64262
ClassCastException at BcelRenderer.java:16
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java index 3aa3400ca..577051fbc 100644 --- a/weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java @@ -83,7 +83,12 @@ public class ExactTypePattern extends TypePattern { return FuzzyBoolean.YES; } - return matchType.isCoerceableFrom(type) ? FuzzyBoolean.MAYBE : FuzzyBoolean.NO; + // fix for PR 64262 - shouldn't try to coerce primitives + if (type.isPrimitive()) { + return FuzzyBoolean.NO; + } else { + return matchType.isCoerceableFrom(type) ? FuzzyBoolean.MAYBE : FuzzyBoolean.NO; + } } public boolean matchesExactly(Class matchType) { |