提交 1b771559 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Do not invoke buildBessage() twice in JdbcSQLException()

上级 7c803c57
...@@ -44,10 +44,10 @@ public class JdbcSQLException extends SQLException { ...@@ -44,10 +44,10 @@ public class JdbcSQLException extends SQLException {
int errorCode, Throwable cause, String stackTrace) { int errorCode, Throwable cause, String stackTrace) {
super(message, state, errorCode); super(message, state, errorCode);
this.originalMessage = message; this.originalMessage = message;
setSQL(sql);
this.cause = cause; this.cause = cause;
this.stackTrace = stackTrace; this.stackTrace = stackTrace;
buildMessage(); // setSQL() invokes buildBessage() by itself
setSQL(sql);
initCause(cause); initCause(cause);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论