You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: plexus-compilers/plexus-compiler-eclipse/src/main/java/org/codehaus/plexus/compiler/eclipse/EclipseJavaCompiler.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -234,11 +234,11 @@ public CompilerResult performCompile(CompilerConfiguration config) throws Compil
234
234
getLog().debug("Using JSR-199 EclipseCompiler");
235
235
// ECJ JSR-199 compiles against the latest Java version it supports if no source
236
236
// version is given explicitly. BatchCompiler uses 1.3 as default. So check
237
-
// whether a source version is specified, and if not supply 1.3 explicitly.
237
+
// whether a source version is specified, and if not supply 8 explicitly.
238
238
if (!haveSourceOrReleaseArgument(args)) {
239
-
getLog().debug("ecj: no source level nor release specified, defaulting to Java 1.3");
239
+
getLog().debug("ecj: no source level nor release specified, defaulting to Java 8");
240
240
args.add("-source");
241
-
args.add("1.3");
241
+
args.add("8");
242
242
}
243
243
244
244
// Also check for the encoding. Could have been set via the CompilerConfig
Copy file name to clipboardexpand all lines: plexus-compilers/plexus-compiler-eclipse/src/test/java/org/codehaus/plexus/compiler/eclipse/EclipseCompilerErrorsAsWarningsTest.java
+12-6
Original file line number
Diff line number
Diff line change
@@ -36,15 +36,21 @@ protected int expectedWarnings() {
Copy file name to clipboardexpand all lines: plexus-compilers/plexus-compiler-eclipse/src/test/java/org/codehaus/plexus/compiler/eclipse/EclipseCompilerFailOnWarningsTest.java
Copy file name to clipboardexpand all lines: plexus-compilers/plexus-compiler-eclipse/src/test/java/org/codehaus/plexus/compiler/eclipse/EclipseCompilerTest.java
0 commit comments