-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PDE-Build] Use 1.8 as default javac target/source-level in scripts #1351
[PDE-Build] Use 1.8 as default javac target/source-level in scripts #1351
Conversation
ECJ does not support Java versions below 1.8 anymore. Contributes to fixing eclipse-platform/eclipse.platform.releng.aggregator#2197
Test Results 291 files + 3 291 suites +3 54m 16s ⏱️ + 5m 39s For more details on these errors, see this check. Results for commit 15e8917. ± Comparison against base commit d9226ab. |
Looks like all errors caused by ECJ dropping java targets below 1.8 are now fixed. |
@@ -1068,9 +1068,9 @@ private void generateCompilerSettings() throws CoreException { | |||
script.printProperty(PROPERTY_PREREQ_COMPILE_LOG, Utils.getPropertyFormat(PROPERTY_BUILD_DIRECTORY) + "/prereqErrors.log"); //$NON-NLS-1$ | |||
|
|||
if (javacSource == null) | |||
script.printProperty(IXMLConstants.PROPERTY_JAVAC_SOURCE, "1.3"); //$NON-NLS-1$ | |||
script.printProperty(IXMLConstants.PROPERTY_JAVAC_SOURCE, "1.8"); //$NON-NLS-1$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make this more robust the new API for the earliest Java target supported by ECJ could be used.
ECJ does not support Java versions below 1.8 anymore.
Contributes to fixing
eclipse-platform/eclipse.platform.releng.aggregator#2197
Reference to eclipse-jdt/eclipse.jdt.core#2551.