mirror of https://github.com/apache/openjpa.git
Fixed JDK-1.5-specific Array.toString() call.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@546743 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
43eb43898a
commit
d72a5ad309
|
@ -391,10 +391,16 @@ public class DB2Dictionary
|
||||||
getMethod("getSqlWarn", null);
|
getMethod("getSqlWarn", null);
|
||||||
Method getSqlErrdMethd = sqlca.getClass().
|
Method getSqlErrdMethd = sqlca.getClass().
|
||||||
getMethod("getSqlErrd", null);
|
getMethod("getSqlErrd", null);
|
||||||
|
StringBuffer errdStr = new StringBuffer();
|
||||||
|
|
||||||
|
int[] errds = (int[]) getSqlErrdMethd.invoke(sqlca, new Object[]{});
|
||||||
|
for (int i = 0; i < errds.length; i++)
|
||||||
|
errdStr.append(errdStr.length() > 0 ? ", " : "").
|
||||||
|
append(errds[i]);
|
||||||
exceptionMsg = exceptionMsg.concat( "SQLCA OUTPUT" +
|
exceptionMsg = exceptionMsg.concat( "SQLCA OUTPUT" +
|
||||||
"[Errp=" +getSqlErrpMethd.invoke(sqlca,new Object[]{})
|
"[Errp=" + getSqlErrpMethd.invoke(sqlca, new Object[]{})
|
||||||
+ ", Errd=" + Arrays.toString((int[])
|
+ ", Errd=" + errdStr);
|
||||||
(getSqlErrdMethd.invoke(sqlca, new Object[]{}))));
|
|
||||||
String Warn = new String((char[])getSqlWarnMethd.
|
String Warn = new String((char[])getSqlWarnMethd.
|
||||||
invoke(sqlca, new Object[]{}));
|
invoke(sqlca, new Object[]{}));
|
||||||
if(Warn.trim().length() != 0)
|
if(Warn.trim().length() != 0)
|
||||||
|
|
Loading…
Reference in New Issue