|
The compiler errors for the tests can be fixed by adding no-op implementations of the previously unimplemented methods, viz.:
class SqlNullCheckedResultSetMockClob implements Clob { public void free() throws SQLException { public Reader getCharacterStream(long pos, long length) throws SQLException {
return null;
} Patch is attached resolving issues as described in previous comments.
Sorry, the previous patch addressed two separate issues. The present attachment resolves only
Thanks Alan. svn ci -m "Applying Alan Canon's patch for Sending src/java/org/apache/commons/dbutils/BeanProcessor.java I've also tested it under 1.6 on a Linux box (back to hating the Mac for not having 1.6). Btw, good naming for patches would be ' |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable { Object result = method.invoke(this.rs, args); Method nullMethod = (Method) nullMethods.get(method.getName()); // Check nullMethod != null first so that we don't call wasNull() // before a true getter method was invoked on the ResultSet. return (nullMethod != null && this.rs.wasNull()) ? nullMethod.invoke(this, (Object[]) null) : result; }