Hi Bryan,

Firing from the hip, I'd say you can remove it.
Can you set t as cause for the SQLException instead, or will that cause the
same amount of "noise"?

I also don't know why Throwable is required, say instead of Exception.

-- 
Kristian

22.48 Lør 27. Jun 2015 skrev Bryan Pendleton <bpendleton.de...@gmail.com>:

>
> This method in XmlVTI is causing me a bit of a problem:
>
>      public  boolean next() throws SQLException
>      {
>          try {
>              if ( _rowIdx < 0 ) { readRows(); }
>
>              if ( ++_rowIdx < _rowCount )
>              {
>                  parseRow( _rowIdx );
>                  return true;
>              }
>              else { return false; }
>          } catch (Throwable t)
>          {
>              t.printStackTrace( System.out );
>              throw new SQLException( t.getMessage() );
>          }
>      }
>
> Is there a compelling reason why that call to printStackTrace needs to be
> there?
>
> I am exercising this code in a regression test, and provoking
> an exception in it, and the unconditional printStackTrace
> makes the test results rather ugly...
>
> What would be the downside if I removed that printStackTrace() call?
>
> thanks,
>
> bryan
>

Reply via email to