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

Alejandro Abdelnur commented on OOZIE-1373:
-------------------------------------------

Currently the maven compiler plugin configuration has source=1.6 only, this 
means that if using JDK1.7 it will use JDK1.7 JRE JARs.

The JDDC APIs have changed in JDK1.7 and there are new methods. This methods 
should be added to the FakeConnection doing a NOP.

Also, do we want to compile with JDK7 and produce JDK7 bits or still produce 
JDK6 bits? If we want to compile with JDK7 and produce JDK6 bits we need to 
update the maven compiler plugin configuration to state target=1.6.



                
> Oozie compilation fails with jdk7
> ---------------------------------
>
>                 Key: OOZIE-1373
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1373
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Rohini Palaniswamy
>
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile 
> (default-testCompile) on project oozie-tools: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /projects/apache/trunk/oozie/tools/src/test/java/org/apache/oozie/tools/FakeDriver.java:[27,7]
>  error: FakeDriver is not abstract and does not override abstract method 
> getParentLogger() in Driver
> [ERROR] 
> /projects/apache/trunk/oozie/tools/src/test/java/org/apache/oozie/tools/FakeConnection.java:[53,7]
>  error: FakeConnection is not abstract and does not override abstract method 
> getNetworkTimeout() in Connection
> [ERROR] 
> /projects/apache/trunk/oozie/tools/src/test/java/org/apache/oozie/tools/FakeConnection.java:[330,19]
>  error: FakeResultSet is not abstract and does not override abstract method 
> <T>getObject(String,Class<T>) in ResultSet

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to