[#3069] jOOQ calls Clob.free(), which is available only in JDBC 4.0 / Java 1.6

This commit is contained in:
Lukas Eder 2014-02-18 18:41:16 +01:00
parent 3601a78c23
commit 4e1111f1ca
2 changed files with 8 additions and 2 deletions

View File

@ -2414,7 +2414,7 @@ final class Utils {
return blob.getBytes(1, (int) blob.length());
}
finally {
blob.free();
JDBCUtils.safeFree(blob);
}
}
else if (object instanceof Clob) {
@ -2424,7 +2424,7 @@ final class Utils {
return clob.getSubString(1, (int) clob.length());
}
finally {
clob.free();
JDBCUtils.safeFree(clob);
}
}

View File

@ -249,6 +249,9 @@ public class JDBCUtils {
blob.free();
}
catch (Exception ignore) {}
// [#3069] The free() method was added only in JDBC 4.0 / Java 1.6
catch (AbstractMethodError ignore) {}
}
}
@ -264,6 +267,9 @@ public class JDBCUtils {
clob.free();
}
catch (Exception ignore) {}
// [#3069] The free() method was added only in JDBC 4.0 / Java 1.6
catch (AbstractMethodError ignore) {}
}
}