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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user