Fixed: Fix Default or Empty Catch block in Java and Groovy files

(OFBIZ-8341)

While reviewing r1812057 I spotted a bunch of swallowed ClassCastExceptions

I then reviewed all ClassCastExceptions and this fixes all of them with a 
minimal logging

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1815797 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2017-11-20 12:32:44 +00:00
parent 3933ba15c0
commit c1a11e83ae
5 changed files with 43 additions and 9 deletions
@@ -435,7 +435,9 @@ public abstract class JdbcValueHandler<T> {
Debug.logWarning("Clob java-type used for java.lang.String. Use java.lang.String java-type instead.", module);
ps.setString(parameterIndex, str);
return;
} catch (ClassCastException e) {}
} catch (ClassCastException e) {
Debug.logInfo(e.getMessage(), module);
}
ps.setClob(parameterIndex, (java.sql.Clob) obj);
return;
}