aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java7
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) {