[ https://issues.apache.org/jira/browse/MCOMPILER-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15481419#comment-15481419 ]
Karl Heinz Marbaise commented on MCOMPILER-277: ----------------------------------------------- It compiles with JDK 8 for source/target which is something different than really using JDK 6. In JDK 8 have several changes in particular in javax. etc. see http://docs.oracle.com/javase/7/docs/api/javax/sql/CommonDataSource.html#getParentLogger() If you need to compile really for JDK 6 you should use JDK 6 (may be you need to use toolchain to correctly handle that). > 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)