diff options
author | Alexander Kurtakov | 2015-01-15 16:11:32 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2015-01-15 16:25:05 +0000 |
commit | 5765e1e726008e229ec15bf325ac267c0948a5c0 (patch) | |
tree | ae5125f80b1081d348430934ec3bfb7b9f3366d1 /bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt | |
parent | e16a62be9c453e7bc94a27065df7c373721ef739 (diff) | |
download | eclipse.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/JNI Generation/org/eclipse/swt')
2 files changed, 2 insertions, 2 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); } |