Hi,
today I updated OpenEJB trunk and it does not compile anymore on JDK7
it is because of new classes that wrap JDBC DataSource and Connection
I think these new methods won't be used in JavaEE6 App (because JavEE6
requires jdk6 and "portable" apps can't use jdk7 specific library functions)
personally I always implemented them with a 'throw new SQLException("not
supported yet")'
consider adding in
org.apache.openejb.resource.jdbc.managed.ManagedDataSource.java
//no @Override if you want to compile on JDK6
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
// use reflection if you want to compile on JDK6 or throw new
SQLFeatureNotSupportedException...
return delegate.getParentLogger();
}
and these lines to
org.apache.openejb.resource.jdbc.managed.ManagedConnection.java
public void setSchema(String schema) throws SQLException {
delegate.setSchema(schema);
}
public String getSchema() throws SQLException {
return delegate.getSchema();
}
public void abort(Executor executor) throws SQLException {
delegate.abort(executor);
}
public void setNetworkTimeout(Executor executor, int milliseconds)
throws SQLException {
delegate.setNetworkTimeout(executor, milliseconds);
}
public int getNetworkTimeout() throws SQLException {
return delegate.getNetworkTimeout();
}
- Enrico