aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2011-12-10 01:03:40 +0000
committeraclement <aclement>2011-12-10 01:03:40 +0000
commit837896f01bac522e7140d6765709980580a18173 (patch)
tree28e674f9363a74fe5025468ecccfea0918356009 /org.aspectj.ajdt.core
parent8bbddd9948226d6246fb03d9350283d166339688 (diff)
downloadaspectj-837896f01bac522e7140d6765709980580a18173.tar.gz
aspectj-837896f01bac522e7140d6765709980580a18173.zip
force java 1.5 in test
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/ASTVisitorTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/ASTVisitorTest.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/ASTVisitorTest.java
index 906a192cb..ffb9275f8 100644
--- a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/ASTVisitorTest.java
+++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/ASTVisitorTest.java
@@ -15,6 +15,7 @@ import java.util.Map;
import junit.framework.TestCase;
+import org.aspectj.org.eclipse.jdt.core.JavaCore;
import org.aspectj.org.eclipse.jdt.core.dom.AST;
import org.aspectj.org.eclipse.jdt.core.dom.ASTParser;
import org.aspectj.org.eclipse.jdt.core.dom.AbstractBooleanTypePattern;
@@ -420,7 +421,9 @@ public class ASTVisitorTest extends TestCase {
private void checkJLS3(String source, String expectedOutput) {
ASTParser parser = ASTParser.newParser(AST.JLS3);
- parser.setCompilerOptions(new HashMap());
+ HashMap<String,String> options = new HashMap<String,String>();
+ options.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_5);
+ parser.setCompilerOptions(options);
parser.setSource(source.toCharArray());
CompilationUnit cu2 = (CompilationUnit) parser.createAST(null);
TestVisitor visitor = new TestVisitor();