From e1b548604a23c54170625a6f9725e7465286624b Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Thu, 25 Jul 2024 23:13:52 +0200 Subject: [PATCH] [PDE-Build] Use 1.8 as default javac target/source-level in scripts ECJ does not support Java versions below 1.8 anymore. Contributes to fixing https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/issues/2197 --- .../pde/internal/build/builder/ModelBuildScriptGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/builder/ModelBuildScriptGenerator.java b/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/builder/ModelBuildScriptGenerator.java index 8636679729..97abe5e378 100644 --- a/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/builder/ModelBuildScriptGenerator.java +++ b/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/builder/ModelBuildScriptGenerator.java @@ -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$ if (javacTarget == null) - script.printProperty(IXMLConstants.PROPERTY_JAVAC_TARGET, "1.2"); //$NON-NLS-1$ + script.printProperty(IXMLConstants.PROPERTY_JAVAC_TARGET, "1.8"); //$NON-NLS-1$ if (bootClasspath == null) { script.println("");//$NON-NLS-1$ script.println("\t"); //$NON-NLS-1$