diff options
author | Jayaprakash Arthanareeswaran | 2013-09-06 08:43:15 +0000 |
---|---|---|
committer | Jayaprakash Arthanareeswaran | 2013-09-06 09:53:09 +0000 |
commit | 8dd9217f7bd01149fb99bc84a47e62b3b6888852 (patch) | |
tree | ff36c140957ee9c2dc1c1abe000c1df1da6c38d7 /org.eclipse.jdt.compiler.tool | |
parent | dadef2fc0573a510ff313dd625ee1ba4e2b2e6e3 (diff) | |
download | eclipse.jdt.core-8dd9217f7bd01149fb99bc84a47e62b3b6888852.tar.gz eclipse.jdt.core-8dd9217f7bd01149fb99bc84a47e62b3b6888852.tar.xz eclipse.jdt.core-8dd9217f7bd01149fb99bc84a47e62b3b6888852.zip |
Bug 415860 - Reverting the changes to EclipseCompiler.java
Diffstat (limited to 'org.eclipse.jdt.compiler.tool')
-rw-r--r-- | org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java b/org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java index 01063d8163..a5252c2582 100644 --- a/org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java +++ b/org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java @@ -5,10 +5,6 @@ * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * - * This is an implementation of an early-draft specification developed under the Java - * Community Process (JCP) and is made available for testing and evaluation purposes - * only. The code is not compatible with any specification of the JCP. - * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -50,9 +46,9 @@ public class EclipseCompiler implements JavaCompiler { private static Set<SourceVersion> SupportedSourceVersions; static { // Eclipse compiler supports all possible versions from version 0 to - // latest supported version + // version 6 // we don't care about the order - EnumSet<SourceVersion> enumSet = EnumSet.range(SourceVersion.RELEASE_0, SourceVersion.latestSupported()); + EnumSet<SourceVersion> enumSet = EnumSet.range(SourceVersion.RELEASE_0, SourceVersion.RELEASE_6); // we don't want anybody to modify this list EclipseCompiler.SupportedSourceVersions = Collections.unmodifiableSet(enumSet); } @@ -119,9 +115,9 @@ public class EclipseCompiler implements JavaCompiler { eclipseCompiler2.fileManager = this.getStandardFileManager(someDiagnosticListener, null, null); } - eclipseCompiler2.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_8); - eclipseCompiler2.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_8); - eclipseCompiler2.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_8); + eclipseCompiler2.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_6); + eclipseCompiler2.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_6); + eclipseCompiler2.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6); ArrayList<String> allOptions = new ArrayList<String>(); if (options != null) { |