Java 1.7 has introduced few new methods in CommonDataSource
& Connection
interfaces. The ones for which you are seeing the error are:
Also, keep in mind that there are more new methods in Java 1.7 than the above two stated ones.
If you want to use Java 1.7, then your custom classes, JdbcConnectionImpl & JdbcDataSource (or their super classes) should implement the new methods defined by Connection
& CommonDataSource
, respectively.