summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/patterns/SimpleScope.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/patterns/SimpleScope.java b/org.aspectj.matcher/src/org/aspectj/weaver/patterns/SimpleScope.java
index 276bef1fe..a9b809481 100644
--- a/org.aspectj.matcher/src/org/aspectj/weaver/patterns/SimpleScope.java
+++ b/org.aspectj.matcher/src/org/aspectj/weaver/patterns/SimpleScope.java
@@ -12,9 +12,6 @@
package org.aspectj.weaver.patterns;
-import java.util.HashSet;
-import java.util.Set;
-
import org.aspectj.bridge.IMessage;
import org.aspectj.bridge.IMessageHandler;
import org.aspectj.bridge.ISourceLocation;
@@ -53,7 +50,7 @@ public class SimpleScope implements IScope {
}
// Check for a primitive
- if (Character.isLowerCase(name.charAt(0))) {
+ if (name.length() < 8 && Character.isLowerCase(name.charAt(0))) {
// could be a primitive
int len = name.length();
if (len == 3) {