Skip to content
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

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

HannesWell
Copy link
Member

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.

Copy link

Test Results

   291 files  +  3     291 suites  +3   54m 16s ⏱️ + 5m 39s
 3 581 tests + 52   3 504 ✅ + 67   76 💤 +11  0 ❌  - 1  1 🔥  - 25 
11 035 runs  +156  10 803 ✅ +198  231 💤 +35  0 ❌  - 3  1 🔥  - 74 

For more details on these errors, see this check.

Results for commit 15e8917. ± Comparison against base commit d9226ab.

@HannesWell
Copy link
Member Author

Looks like all errors caused by ECJ dropping java targets below 1.8 are now fixed.
The other failure seems unrelated and just started to show up recently.

@HannesWell HannesWell merged commit e1b5486 into eclipse-pde:master Jul 25, 2024
15 of 17 checks passed
@HannesWell HannesWell deleted the pde.build-default-1.8 branch July 25, 2024 21:56
@@ -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$
Copy link
Member Author

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.

HannesWell added a commit to HannesWell/eclipse.pde that referenced this pull request Jul 28, 2024
HannesWell added a commit to HannesWell/eclipse.pde that referenced this pull request Aug 6, 2024
HannesWell added a commit to HannesWell/eclipse.pde that referenced this pull request Aug 6, 2024
HannesWell added a commit that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant