Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2015-01-15 16:11:32 +0000
committerAlexander Kurtakov2015-01-15 16:25:05 +0000
commit5765e1e726008e229ec15bf325ac267c0948a5c0 (patch)
treeae5125f80b1081d348430934ec3bfb7b9f3366d1 /bundles/org.eclipse.swt.tools
parente16a62be9c453e7bc94a27065df7c373721ef739 (diff)
downloadeclipse.platform.swt-5765e1e726008e229ec15bf325ac267c0948a5c0.tar.gz
eclipse.platform.swt-5765e1e726008e229ec15bf325ac267c0948a5c0.tar.xz
eclipse.platform.swt-5765e1e726008e229ec15bf325ac267c0948a5c0.zip
Bug 457622 - Move swt.tools to JLS8
swt.tools shouldn't use the deprecated JLS4 but the new JLS8 (aka Java 1.8 source level). As this is used only for parsing it allows potential use of Java 1.8 though nothing will use it for now. Change-Id: I3c18f621b8a0502214b0a1e9e234adb8983802e4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt.tools')
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTClass.java2
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ReflectClass.java2
-rw-r--r--bundles/org.eclipse.swt.tools/JavadocBasher/org/eclipse/swt/tools/internal/JavadocBasher.java2
-rw-r--r--bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java2
4 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTClass.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTClass.java
index 301027ddcf..8b6a035298 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTClass.java
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTClass.java
@@ -77,7 +77,7 @@ public ASTClass(String sourcePath, MetaData metaData) {
this.metaData = metaData;
String source = JNIGenerator.loadFile(sourcePath);
- ASTParser parser = ASTParser.newParser(AST.JLS4);
+ ASTParser parser = ASTParser.newParser(AST.JLS8);
parser.setSource(source.toCharArray());
CompilationUnit unit = (CompilationUnit)parser.createAST(null);
TypeDeclaration type = (TypeDeclaration)unit.types().get(0);
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ReflectClass.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ReflectClass.java
index baca28e5d7..175245f0cc 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ReflectClass.java
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ReflectClass.java
@@ -41,7 +41,7 @@ void checkMembers() {
CompilationUnit unit = null;
if (JNIItem.GEN64) {
source = JNIGenerator.loadFile(sourcePath);
- ASTParser parser = ASTParser.newParser(AST.JLS4);
+ ASTParser parser = ASTParser.newParser(AST.JLS8);
parser.setSource(source.toCharArray());
unit = (CompilationUnit)parser.createAST(null);
}
diff --git a/bundles/org.eclipse.swt.tools/JavadocBasher/org/eclipse/swt/tools/internal/JavadocBasher.java b/bundles/org.eclipse.swt.tools/JavadocBasher/org/eclipse/swt/tools/internal/JavadocBasher.java
index d298d21898..fc7de2b8e2 100644
--- a/bundles/org.eclipse.swt.tools/JavadocBasher/org/eclipse/swt/tools/internal/JavadocBasher.java
+++ b/bundles/org.eclipse.swt.tools/JavadocBasher/org/eclipse/swt/tools/internal/JavadocBasher.java
@@ -262,7 +262,7 @@ public class JavadocBasher {
void bashFile(final File source, final File target, File out) {
char[] contents = readFile(source);
if (contents == null) return;
- ASTParser parser = ASTParser.newParser(AST.JLS4);
+ ASTParser parser = ASTParser.newParser(AST.JLS8);
final Document sourceDocument = new Document(new String(contents));
parser.setSource(contents);
CompilationUnit sourceUnit = (CompilationUnit)parser.createAST(null);
diff --git a/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java b/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java
index 9db16d8be8..10a215b896 100644
--- a/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java
+++ b/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java
@@ -228,7 +228,7 @@ TypeDeclaration loadType(HashMap<String, TypeDeclaration> cache, String path) {
if (path == null) return null;
Object value = cache.get(path);
if (value != null) return (TypeDeclaration)value;
- ASTParser parser = ASTParser.newParser(AST.JLS4);
+ ASTParser parser = ASTParser.newParser(AST.JLS8);
parser.setSource(loadFile(path).toCharArray());
CompilationUnit unit = (CompilationUnit)parser.createAST(null);
TypeDeclaration type = (TypeDeclaration)unit.types().get(0);

Back to the top