db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Rall <...@finemaltcoding.com>
Subject Re: Interface org.apache.torque.dsfactory.DataSourceFactory.getDataSource throws TorqueException
Date Sat, 22 Nov 2003 01:20:14 GMT
Todd Carmichael wrote:
[Interface org.apache.torque.dsfactory.DataSourceFactory.getDataSource throws 
> 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

View raw message