Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.4
-
None
-
Java 5
Description
GenericKeyedObjectPool.preparePool doesnot throw an exception if supplied factory is null.
GenericKeyedObjectPool.preparePool invokes ensureMinIdle() if populateImmediately is true and GenericKeyedObjectPool.ensureMinIdle() invokes GenericKeyedObjectPool.addObject() which throws an IllegalStateException if factory is null but this exception does not throw further in GenericKeyedObjectPool.preparePool.
Catch block of GenericKeyedObjectPool..preparePool is empty.
public synchronized void preparePool(Object key, boolean populateImmediately) {
ObjectQueue pool = (ObjectQueue)(_poolMap.get(key));
System.out.println(this.getClass().getName()+".preparePool() pool ["+pool +"]");
if (null == pool)
if (populateImmediately) {
try
catch (Exception e)
{ //Do nothing } }
}