David Sean Taylor
added a comment - 04/Nov/07 03:30 I don;'t think we can support Java 6 in 2.1.3 as we are also trying to support 1.4
With the trunk, we will deprecate 1.4 support
I applied this patch to the trunk and it compiles in Java 5:
public boolean isWrapperFor(Class<?> iface) throws SQLException
{
return false;
// #ifdef JDBC4 return getConnection().isWrapperFor(iface);
}
<T> T unwrap(Class<T> iface) throws SQLException
{
throw new SQLException("PoolingDataSource is not a wrapper.");
//#ifdef JDBC4 return getConnection().unwrap(iface);
}
Im beginning we need #ifdefs here. I was looking at the commons dbcp project and they were doing conditional processing with Ant, see:
https://issues.apache.org/jira/secure/attachment/12362389/patch.txt
ah yes, makes you long for the coding C again...