diff options
author | jay | 2018-06-18 11:46:54 +0000 |
---|---|---|
committer | jay | 2018-06-18 11:46:54 +0000 |
commit | fa7aa0006a3c6d1734561abd7cd691bbcd0b2746 (patch) | |
tree | d3caa29dfd99ee1a459cd0bce85b537a13d971a3 /org.eclipse.jdt.compiler.tool | |
parent | e716cf8d34e535b1b38feb9143e66a9f395e67ea (diff) | |
download | eclipse.jdt.core-fa7aa0006a3c6d1734561abd7cd691bbcd0b2746.tar.gz eclipse.jdt.core-fa7aa0006a3c6d1734561abd7cd691bbcd0b2746.tar.xz eclipse.jdt.core-fa7aa0006a3c6d1734561abd7cd691bbcd0b2746.zip |
Increment default compliance level to 11 for JSR 199 interface
Change-Id: I46571d3de197c1d114fbe80398ab35048487b2ee
Signed-off-by: jay <jarthana@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.compiler.tool')
2 files changed, 8 insertions, 8 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 db2e952a58..77c88fb1cd 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2017 IBM Corporation and others. + * Copyright (c) 2006, 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -115,9 +115,9 @@ public class EclipseCompiler implements JavaCompiler { eclipseCompiler2.fileManager = this.getStandardFileManager(someDiagnosticListener, null, null); } - eclipseCompiler2.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_10); - eclipseCompiler2.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_10); - eclipseCompiler2.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_10); + eclipseCompiler2.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_11); + eclipseCompiler2.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_11); + eclipseCompiler2.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_11); ArrayList<String> allOptions = new ArrayList<>(); if (options != null) { diff --git a/org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseFileManager.java b/org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseFileManager.java index 74298de8b5..62472dafaa 100644 --- a/org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseFileManager.java +++ b/org.eclipse.jdt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/EclipseFileManager.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2017 IBM Corporation and others. + * Copyright (c) 2006, 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -1361,9 +1361,9 @@ public class EclipseFileManager implements StandardJavaFileManager { Map<String, String> options = new HashMap<>(); // FIXME: Find a way to get the options from the EclipseCompiler and pass it to the parser. // FIXME: need to be the latest and not hardcoded value - options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_10); - options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_10); - options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_10); + options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_11); + options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_11); + options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_11); CompilerOptions compilerOptions = new CompilerOptions(options); ProblemReporter problemReporter = new ProblemReporter( |