Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2013-12-11 12:23:11 +0000
committerLakshmi Shanmugam2013-12-11 12:23:11 +0000
commit157cd3631f69e84d7e46bab5c9d374dfb9722c13 (patch)
treed32a241ff93ff409b9080efbdfb1d4224b3c0c2b /bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse
parent6a8e6a9f6f6100d8069f881a37585d1aef908728 (diff)
downloadeclipse.platform.swt-157cd3631f69e84d7e46bab5c9d374dfb9722c13.tar.gz
eclipse.platform.swt-157cd3631f69e84d7e46bab5c9d374dfb9722c13.tar.xz
eclipse.platform.swt-157cd3631f69e84d7e46bab5c9d374dfb9722c13.zip
Bug 423721 - SWT workspace is full of SWT tools errors (Fix SWT tools)
Diffstat (limited to 'bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTClass.java3
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ReflectClass.java3
2 files changed, 2 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 9e6630e284..301027ddcf 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
@@ -27,7 +27,6 @@ import org.eclipse.jdt.core.dom.TypeDeclaration;
import org.eclipse.jdt.core.dom.VariableDeclarationFragment;
import org.eclipse.swt.tools.internal.ASTType.TypeResolver;
-@SuppressWarnings("deprecation")
public class ASTClass extends ASTItem implements JNIClass {
String sourcePath;
MetaData metaData;
@@ -78,7 +77,7 @@ public ASTClass(String sourcePath, MetaData metaData) {
this.metaData = metaData;
String source = JNIGenerator.loadFile(sourcePath);
- ASTParser parser = ASTParser.newParser(AST.JLS3);
+ ASTParser parser = ASTParser.newParser(AST.JLS4);
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 4b76d5006e..baca28e5d7 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
@@ -35,14 +35,13 @@ public ReflectClass(Class<?> clazz, MetaData data, String sourcePath) {
this.sourcePath = sourcePath;
}
-@SuppressWarnings("deprecation")
void checkMembers() {
if (fields != null) return;
String source = null;
CompilationUnit unit = null;
if (JNIItem.GEN64) {
source = JNIGenerator.loadFile(sourcePath);
- ASTParser parser = ASTParser.newParser(AST.JLS3);
+ ASTParser parser = ASTParser.newParser(AST.JLS4);
parser.setSource(source.toCharArray());
unit = (CompilationUnit)parser.createAST(null);
}

Back to the top