Fix problem where getResources method causes NoSuchMethodError on 1.1 JVMs,
due to lack of ClassLoader.getResources method. See bugzilla #37484. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@375866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1120,6 +1120,11 @@ public abstract class LogFactory {
|
||||
"Exception while trying to find configuration file "
|
||||
+ name + ":" + e.getMessage());
|
||||
return null;
|
||||
} catch(NoSuchMethodError e) {
|
||||
// we must be running on a 1.1 JVM which doesn't support
|
||||
// ClassLoader.getSystemResources; just return null in
|
||||
// this case.
|
||||
return null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user