Fixed innaccurate catch. Should catch all throwables to ensure graceful failure.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@156998 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -232,7 +232,7 @@ public abstract class LogFactory {
|
|||||||
Class implementationClass = Class.forName(storeImplementationClass);
|
Class implementationClass = Class.forName(storeImplementationClass);
|
||||||
result = (Hashtable) implementationClass.newInstance();
|
result = (Hashtable) implementationClass.newInstance();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Throwable t) {
|
||||||
// ignore
|
// ignore
|
||||||
if (!WEAK_HASHTABLE_CLASSNAME.equals(storeImplementationClass)) {
|
if (!WEAK_HASHTABLE_CLASSNAME.equals(storeImplementationClass)) {
|
||||||
// if the user's trying to set up a custom implementation, give a clue
|
// if the user's trying to set up a custom implementation, give a clue
|
||||||
|
|||||||
Reference in New Issue
Block a user