This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch TEST_TO_FIX_MCOMPILER-192
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git


The following commit(s) were added to refs/heads/TEST_TO_FIX_MCOMPILER-192 by 
this push:
     new 98ac404  Cleaning up code.
98ac404 is described below

commit 98ac404e0a33c6ecd2427a378fa24c15c4de8457
Author: Karl Heinz Marbaise <khmarba...@apache.org>
AuthorDate: Sat Apr 14 11:06:50 2018 +0200

    Cleaning up code.
---
 .../org/apache/maven/plugin/compiler/CompilerMojoTestCase.java | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git 
a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java 
b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
index 3882108..8f2e247 100644
--- a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
+++ b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
@@ -58,12 +58,10 @@ public class CompilerMojoTestCase
         super.setUp();
         
         String javaSpec = System.getProperty( "java.specification.version" );
-        if ( "9".equals( javaSpec ) )
-        {
-            source = "6";
-            target = "6";
-        }
-        if ( "10".equals( javaSpec ) )
+        // It is needed to set target/source to JDK 6 for JDK9 and JDK10
+        // cause this is the lowest version which is supported by those JDK's.
+        // The default source/target "5" is not supported anymore.
+        if ( "9".equals( javaSpec ) || "10".equals ( javaSpec ) )
         {
             source = "6";
             target = "6";

-- 
To stop receiving notification emails like this one, please contact
khmarba...@apache.org.

Reply via email to