commit | 4924ffc59a70d3548ffaab13156792196bcc4bff | [log] [tgz] |
---|---|---|
author | Vikas Chandra <Vikas.Chandra@in.ibm.com> | Fri Feb 14 17:04:23 2020 +0530 |
committer | Sarika Sinha <sarika.sinha@in.ibm.com> | Sat Feb 15 01:51:48 2020 -0500 |
tree | 06936f66b0ee09dd005167f6e053ba54e8dca029 | |
parent | fc8d7763ff6cceb14dcc4be42ac3d2cea012024a [diff] |
Bug 559703 - Broken: warning "There are no JREs installed in the workspace that are strictly compatible with this environment" Change-Id: Iaf215f78024f6363544c131405f06fd67c4b6bbd Signed-off-by: Vikas Chandra <Vikas.Chandra@in.ibm.com>
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/environments/ExecutionEnvironment.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/environments/ExecutionEnvironment.java index c9f6844..1b05fa8 100644 --- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/environments/ExecutionEnvironment.java +++ b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/environments/ExecutionEnvironment.java
@@ -478,6 +478,13 @@ } } + // For below Java 9 EE, compiler release option should be disabled by default + String property = profile.getProperty(JavaCore.COMPILER_COMPLIANCE); + if (property != null) { + if (JavaCore.compareJavaVersions(property, JavaCore.VERSION_9) < 0) { + profile.setProperty(JavaCore.COMPILER_RELEASE, JavaCore.DISABLED); + } + } return profile; }