Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayaprakash Arthanareeswaran2013-04-04 07:15:05 +0000
committerJayaprakash Arthanareeswaran2013-04-04 07:24:32 +0000
commitbd118e51270d54e48ef1b8d76bf62d7f013d8051 (patch)
treefc819c783b0cf3f82af72b9bc4ce2c413d325a87 /org.eclipse.jdt.apt.tests
parentd6f02f07429dae5d9415421b0a1fb951b3ab04e0 (diff)
downloadeclipse.jdt.core-bd118e51270d54e48ef1b8d76bf62d7f013d8051.tar.gz
eclipse.jdt.core-bd118e51270d54e48ef1b8d76bf62d7f013d8051.tar.xz
eclipse.jdt.core-bd118e51270d54e48ef1b8d76bf62d7f013d8051.zip
Fix for bug 404869 - APT projects use code deprecated in BETA_JAVA8
Diffstat (limited to 'org.eclipse.jdt.apt.tests')
-rw-r--r--org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.jdt.apt.tests/pom.xml2
-rw-r--r--org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ReadAnnotationTests2.java4
-rw-r--r--org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/annotations/mirrortest/MirrorDeclarationTestAnnotationProcessor.java8
4 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF b/org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF
index 6ddc5efc80..c9b1545ef2 100644
--- a/org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF
+++ b/org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.jdt.apt.tests; singleton:=true
-Bundle-Version: 3.3.400.qualifier
+Bundle-Version: 3.3.500.qualifier
Bundle-ClassPath: apt.jar,
aptext.jar
Bundle-Activator: org.eclipse.jdt.apt.tests.plugin.AptTestsPlugin
diff --git a/org.eclipse.jdt.apt.tests/pom.xml b/org.eclipse.jdt.apt.tests/pom.xml
index 5f4bed137b..aff2583bd8 100644
--- a/org.eclipse.jdt.apt.tests/pom.xml
+++ b/org.eclipse.jdt.apt.tests/pom.xml
@@ -18,6 +18,6 @@
</parent>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.apt.tests</artifactId>
- <version>3.3.400-SNAPSHOT</version>
+ <version>3.3.500-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
</project>
diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ReadAnnotationTests2.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ReadAnnotationTests2.java
index 24f7e6653b..8a6cceaa3d 100644
--- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ReadAnnotationTests2.java
+++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ReadAnnotationTests2.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2012 BEA Systems, Inc.
+ * Copyright (c) 2005, 2013 BEA Systems, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -184,7 +184,7 @@ public class ReadAnnotationTests2 extends BuilderTests {
}
final BindingRequestor requestor = new BindingRequestor();
- final ASTParser parser = ASTParser.newParser(AST.JLS4);
+ final ASTParser parser = ASTParser.newParser(AST.JLS8);
parser.setResolveBindings(true);
parser.setProject(javaProj);
parser.setIgnoreMethodBodies(true);
diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/annotations/mirrortest/MirrorDeclarationTestAnnotationProcessor.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/annotations/mirrortest/MirrorDeclarationTestAnnotationProcessor.java
index e175a807fb..d45aea047c 100644
--- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/annotations/mirrortest/MirrorDeclarationTestAnnotationProcessor.java
+++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/annotations/mirrortest/MirrorDeclarationTestAnnotationProcessor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2010 BEA Systems, Inc.
+ * Copyright (c) 2005, 2013 BEA Systems, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -297,7 +297,7 @@ public class MirrorDeclarationTestAnnotationProcessor extends BaseProcessor {
MethodDeclaration methodDec = null;
MethodDeclaration methodDecNoArg = null;
for(MethodDeclaration method : methodDecls) {
- if(method.toString().endsWith("methodDec(int k, String... t)"))
+ if(method.toString().endsWith("methodDec(int k, String ... t)"))
methodDec = method;
if(method.toString().endsWith("methodDecNoArg()"))
methodDecNoArg = method;
@@ -322,12 +322,12 @@ public class MirrorDeclarationTestAnnotationProcessor extends BaseProcessor {
for(ParameterDeclaration param : paramDecls) {
if(param.toString().startsWith("int"))
paramDeclInt = param;
- if(param.toString().startsWith("String..."))
+ if(param.toString().startsWith("String ..."))
paramDeclString = param;
}
ProcessorTestStatus.assertTrue("int parameter exists", paramDeclInt != null);
ProcessorTestStatus.assertEquals("Parameter type is int", "int", paramDeclInt.getType().toString());
- ProcessorTestStatus.assertTrue("String... parameter exists", paramDeclString != null);
+ ProcessorTestStatus.assertTrue("String ... parameter exists", paramDeclString != null);
ProcessorTestStatus.assertEquals("Parameter type is String[]", "java.lang.String[]", paramDeclString.getType().toString());
ProcessorTestStatus.assertEquals("Number of parameters in methodDecNoArg", 0, methodDecNoArg.getParameters().size());
}

Back to the top