You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/03/04 15:32:48 UTC

DO NOT REPLY [Bug 17635] New: - PoolableConnectionFactory-Construction declared to throw Exception

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17635>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17635

PoolableConnectionFactory-Construction declared to throw Exception

           Summary: PoolableConnectionFactory-Construction declared to throw
                    Exception
           Product: Commons
           Version: 1.0 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Dbcp
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: tkl@telenet.ch


The constructor "public PoolableConnectionFactory(ConnectionFactory connFactory, 
ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, 
boolean defaultReadOnly, boolean defaultAutoCommit)" is declared that it may 
throw an exception.




However the constructor code *never* throws any checked exceptions so this 
throws-declartion should be removed (like the second constructor with an 
additional parameter).




This change is completely backwards compatible (ie existing source code 
continues to compile)

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