1
0

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:
Simon Kitching
2006-02-08 05:46:03 +00:00
parent e79f98f343
commit 6a015667eb

View File

@@ -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;
}
}
};