You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Todd Carmichael <to...@concur.com> on 2003/11/05 20:52:35 UTC

Interface org.apache.torque.dsfactory.DataSourceFactory.getDataSo urce throws TorqueException

However implementation of DataSourceFactory by
org.apache.torque.dsfactory.SharedPoolDataSourceFactory does NOT throw
TorqueException.  For one, it seems very odd that this is not an error by
Java.  I would say this is a bug and SharedPoolDataSourceFactory should be
marked as throwing a TorqueException.

ToddC


Re: Interface org.apache.torque.dsfactory.DataSourceFactory.getDataSource throws TorqueException

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Todd Carmichael wrote:
[Interface org.apache.torque.dsfactory.DataSourceFactory.getDataSource throws 
TorqueException.]
> However implementation of DataSourceFactory by
> org.apache.torque.dsfactory.SharedPoolDataSourceFactory does NOT throw
> TorqueException.  For one, it seems very odd that this is not an error by
 > Java.

Java does not require methods to declare all of the possible exceptions 
mentioned by the interface their class implements.

> I would say this is a bug and SharedPoolDataSourceFactory should be
> marked as throwing a TorqueException.

Why?  The implementation doesn't throw TorqueException, does it?


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org