提交 2d0c50f1 authored 作者: Noel Grandin's avatar Noel Grandin

fix TestCrashAPI unit test crash

上级 ab3b5eff
...@@ -1063,10 +1063,14 @@ public class JdbcStatement extends TraceObject implements Statement, JdbcStateme ...@@ -1063,10 +1063,14 @@ public class JdbcStatement extends TraceObject implements Statement, JdbcStateme
@Override @Override
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public <T> T unwrap(Class<T> iface) throws SQLException { public <T> T unwrap(Class<T> iface) throws SQLException {
try {
if (isWrapperFor(iface)) { if (isWrapperFor(iface)) {
return (T) this; return (T) this;
} }
throw DbException.getInvalidValueException("iface", iface); throw DbException.getInvalidValueException("iface", iface);
} catch (Exception e) {
throw logAndConvert(e);
}
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论