Author: rdonkin Date: Wed Feb 22 15:14:24 2006 New Revision: 379967 URL: http://svn.apache.org/viewcvs?rev=379967&view=rev Log: Tightened API contract (missed from last batch). Contributed by Sandy McArthur. Issue #38746.
Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/KeyedObjectPool.java jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/ObjectPool.java Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/KeyedObjectPool.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/KeyedObjectPool.java?rev=379967&r1=379966&r2=379967&view=diff ============================================================================== --- jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/KeyedObjectPool.java (original) +++ jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/KeyedObjectPool.java Wed Feb 22 15:14:24 2006 @@ -124,8 +124,9 @@ * * @throws Exception when [EMAIL PROTECTED] KeyedPoolableObjectFactory#makeObject} fails. * @throws IllegalStateException after [EMAIL PROTECTED] #close} has been called on this pool. + * @throws UnsupportedOperationException when this pool cannot add new idle objects. */ - void addObject(Object key) throws Exception, IllegalStateException; + void addObject(Object key) throws Exception, IllegalStateException, UnsupportedOperationException; /** * Returns the number of instances Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/ObjectPool.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/ObjectPool.java?rev=379967&r1=379966&r2=379967&view=diff ============================================================================== --- jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/ObjectPool.java (original) +++ jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/ObjectPool.java Wed Feb 22 15:14:24 2006 @@ -106,8 +106,9 @@ * * @throws Exception when [EMAIL PROTECTED] PoolableObjectFactory#makeObject} fails. * @throws IllegalStateException after [EMAIL PROTECTED] #close} has been called on this pool. + * @throws UnsupportedOperationException when this pool cannot add new idle objects. */ - void addObject() throws Exception, IllegalStateException; + void addObject() throws Exception, IllegalStateException, UnsupportedOperationException; /** * Return the number of instances --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]