From 8659ce4fd4def30f97ba40c5f39f174ac9fda2ce Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 29 Jun 2010 15:42:01 +0000 Subject: length check --- org.aspectj.matcher/src/org/aspectj/weaver/patterns/SimpleScope.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'org.aspectj.matcher') 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) { -- cgit v1.2.3