-
Task
-
Resolution: Done
-
Major
-
JBossAS-3.2.7 Final, JBossAS-4.0.3 SP1
-
None
I just found this bad error handling in the WrappedCallableStatement:
public byte getByte(String parameterName) throws SQLException
{
try
catch (SQLException e)
{ checkException(e); return 0; }
}
The idea is supposed to be that checkException looks for fatal errors and closes the exception
before given the exception to the application:
This needs making more explicit to avoid errors:
public byte getByte(String parameterName) throws SQLException
{
try
{ return cs.getByte(parameterName); }
catch (SQLException e)
{ throw checkException(e); }}