Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 415860 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.jdt.compiler.tool/.classpath (-1 / +1 lines)
Lines 1-7 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
2
<classpath>
3
	<classpathentry kind="src" path="src"/>
3
	<classpathentry kind="src" path="src"/>
4
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
4
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
5
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
6
	<classpathentry kind="output" path="bin"/>
6
	<classpathentry kind="output" path="bin"/>
7
</classpath>
7
</classpath>
(-)a/org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java (-5 / +9 lines)
Lines 1-12 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2006, 2010 IBM Corporation and others.
2
 * Copyright (c) 2006, 2013 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
7
 *
8
 * This is an implementation of an early-draft specification developed under the Java
9
 * Community Process (JCP) and is made available for testing and evaluation purposes
10
 * only. The code is not compatible with any specification of the JCP.
11
 * 
8
 * Contributors:
12
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
13
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
14
 *******************************************************************************/
11
package org.eclipse.jdt.internal.compiler.tool;
15
package org.eclipse.jdt.internal.compiler.tool;
12
16
Lines 46-56 Link Here
46
	private static Set<SourceVersion> SupportedSourceVersions;
50
	private static Set<SourceVersion> SupportedSourceVersions;
47
	static {
51
	static {
48
		// Eclipse compiler supports all possible versions from version 0 to
52
		// Eclipse compiler supports all possible versions from version 0 to
49
		// version 6
53
		// version 6
50
		// we don't care about the order
54
		// we don't care about the order
51
		EnumSet<SourceVersion> enumSet = EnumSet.range(SourceVersion.RELEASE_0, SourceVersion.RELEASE_6);
55
		EnumSet<SourceVersion> enumSet = EnumSet.range(SourceVersion.RELEASE_0, SourceVersion.latestSupported());
52
		// we don't want anybody to modify this list
56
		// we don't want anybody to modify this list
53
		EclipseCompiler.SupportedSourceVersions = Collections.unmodifiableSet(enumSet);
57
		EclipseCompiler.SupportedSourceVersions = Collections.unmodifiableSet(enumSet);
54
	}
58
	}
55
59
56
	WeakHashMap<Thread, EclipseCompilerImpl> threadCache;
60
	WeakHashMap<Thread, EclipseCompilerImpl> threadCache;
Lines 113-125 Link Here
113
			eclipseCompiler2.fileManager = fileManager;
117
			eclipseCompiler2.fileManager = fileManager;
114
		} else {
118
		} else {
115
			eclipseCompiler2.fileManager = this.getStandardFileManager(someDiagnosticListener, null, null);
119
			eclipseCompiler2.fileManager = this.getStandardFileManager(someDiagnosticListener, null, null);
116
		}
120
		}
117
121
118
		eclipseCompiler2.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_6);
122
		eclipseCompiler2.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_8);
119
		eclipseCompiler2.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_6);
123
		eclipseCompiler2.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_8);
120
		eclipseCompiler2.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6);
124
		eclipseCompiler2.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_8);
121
125
122
		ArrayList<String> allOptions = new ArrayList<String>();
126
		ArrayList<String> allOptions = new ArrayList<String>();
123
		if (options != null) {
127
		if (options != null) {
124
			for (Iterator<String> iterator = options.iterator(); iterator.hasNext(); ) {
128
			for (Iterator<String> iterator = options.iterator(); iterator.hasNext(); ) {
125
				eclipseCompiler2.fileManager.handleOption(iterator.next(), iterator);
129
				eclipseCompiler2.fileManager.handleOption(iterator.next(), iterator);

Return to bug 415860