diff options
author | aclement <aclement> | 2009-01-17 01:48:59 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-01-17 01:48:59 +0000 |
commit | 83068f5508347e18a935fa9ae94541b921c1cc75 (patch) | |
tree | 07817ba7eb58d5d3f55bde4b55cf8b59b475b723 /org.aspectj.matcher/src/org/aspectj/weaver/tools | |
parent | 83e8e800adaf24c52b03d681fcf75426a00ec814 (diff) | |
download | aspectj-83068f5508347e18a935fa9ae94541b921c1cc75.tar.gz aspectj-83068f5508347e18a935fa9ae94541b921c1cc75.zip |
few more tests added
Diffstat (limited to 'org.aspectj.matcher/src/org/aspectj/weaver/tools')
-rw-r--r-- | org.aspectj.matcher/src/org/aspectj/weaver/tools/StandardPointcutParser.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/tools/StandardPointcutParser.java b/org.aspectj.matcher/src/org/aspectj/weaver/tools/StandardPointcutParser.java index 226ae8b78..ae6b3fdf2 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/tools/StandardPointcutParser.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/tools/StandardPointcutParser.java @@ -314,7 +314,9 @@ public class StandardPointcutParser { formalBindings[i] = new FormalBinding(toUnresolvedType(formalParameters[i].getType()), formalParameters[i].getName(), i); } if (inScope == null) { - return new SimpleScope(getWorld(), formalBindings); + SimpleScope ss = new SimpleScope(getWorld(), formalBindings); + ss.setImportedPrefixes(new String[] { "java.lang.", "java.util." }); + return ss; } else { ResolvedType inType = getWorld().resolve(inScope.getName()); ISourceContext sourceContext = new ISourceContext() { @@ -333,7 +335,9 @@ public class StandardPointcutParser { public void tidy() { } }; - return new BindingScope(inType, sourceContext, formalBindings); + BindingScope bScope = new BindingScope(inType, sourceContext, formalBindings); + bScope.setImportedPrefixes(new String[] { "java.lang.", "java.util." }); + return bScope; } } |