[ 
https://issues.apache.org/jira/browse/MCOMPILER-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15481480#comment-15481480
 ] 

Karl Heinz Marbaise commented on MCOMPILER-277:
-----------------------------------------------

I don't see any differences. You need to support two different JDK's which is 
nothing unusual. So you have to have installed the two JDK's and compile the 
whole project with JDK 1.6 or with JDK 1.7 that's it...This makes it absolutely 
sure that there are no compatibility issues using different JDK's means for 
example using JDK 1.7 in relationship with source/target for JDK 6....( I have 
done that several times with IBM Java 1.6 / IBM Java 1.7 / Oracle JDK 1.6 / 
Oracle JDK 1.7 etc. ). 
The simplest solution for such things is to [configure Maven 
Toolchain|https://github.com/khmarbaise/maven-toolchain-example] and use it via 
that...

Furthermore you can check the language level you are using by 
http://www.mojohaus.org/animal-sniffer/animal-sniffer-maven-plugin/ to be sure 
you don't use JDK 1.7 features while you are compiling for JDK 1.6 ...etc. 

> Compilationg error while compiling for 1.6 using JDK 1.8
> --------------------------------------------------------
>
>                 Key: MCOMPILER-277
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-277
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.3, 3.5.1
>         Environment: Maven 3.2.5. JDK 1.8.
>            Reporter: Yoram Michaeli
>
> I have JDK 8 (Java version: 1.8.0_91, vendor: Oracle Corporation) installed 
> with Maven 3.2.5 and the maven-compiler-plugin is set for source and target 
> version 1.6.
> I'm getting the following compilation error:xxx is not abstract and does not 
> override abstract method getParentLogger() in javax.sql.CommonDataSource
> Switching the environment (PATH and JAVA_HOME) to work with JDK 6 (Java 
> version: 1.6.0_45, vendor: Sun Microsystems Inc.) compiles OK.
> Seems to me that the plugin is not really compiles for 1.6.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to