[slf4j-dev] [GIT] SLF4J: Simple Logging Facade for Java branch, master, updated. v1.5.11-7-g40e51c6
added by portage for gitosis-gentoo
git-noreply at pixie.qos.ch
Sun Apr 4 22:21:29 CEST 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SLF4J: Simple Logging Facade for Java".
The branch, master has been updated
via 40e51c6d8ce73c4b7822596288039a6c7fd1e00f (commit)
from 6f819965012916a03ec7bffd6ddcb16164da94ec (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=slf4j.git;a=commit;h=40e51c6d8ce73c4b7822596288039a6c7fd1e00f
http://github.com/ceki/slf4j/commit/40e51c6d8ce73c4b7822596288039a6c7fd1e00f
commit 40e51c6d8ce73c4b7822596288039a6c7fd1e00f
Author: Ceki Gulcu <ceki at qos.ch>
Date: Sun Apr 4 22:20:26 2010 +0200
Fixed bug 164 observed when SLF4J artifacts were placed under
java.endorsed.dirs.
diff --git a/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java b/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java
index 068d3df..2f5c2f3 100644
--- a/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java
+++ b/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java
@@ -192,12 +192,12 @@ public final class LoggerFactory {
try {
ClassLoader loggerFactoryClassLoader = LoggerFactory.class
.getClassLoader();
+ Enumeration paths;
if (loggerFactoryClassLoader == null) {
- // see http://bugzilla.slf4j.org/show_bug.cgi?id=146
- return; // better than a null pointer exception
+ paths = ClassLoader.getSystemResources(STATIC_LOGGER_BINDER_PATH);
+ } else {
+ paths = loggerFactoryClassLoader.getResources(STATIC_LOGGER_BINDER_PATH);
}
- Enumeration paths = loggerFactoryClassLoader
- .getResources(STATIC_LOGGER_BINDER_PATH);
List implementationList = new ArrayList();
while (paths.hasMoreElements()) {
URL path = (URL) paths.nextElement();
diff --git a/slf4j-site/src/site/pages/news.html b/slf4j-site/src/site/pages/news.html
index e37db4a..8279131 100644
--- a/slf4j-site/src/site/pages/news.html
+++ b/slf4j-site/src/site/pages/news.html
@@ -48,6 +48,12 @@
href="http://bugzilla.slf4j.org/show_bug.cgi?id=175">bug 175</a> by
synchronizing access to the loggerNameList field.</p>
+ <p>Fixed <a
+ href="http://bugzilla.slf4j.org/show_bug.cgi?id=164">bug 164</a>
+ observed when SLF4J artifacts were placed under
+ java.endorsed.dirs.</p>
+
+
<hr noshade="noshade" size="1"/>
<h3>February 25th, 2010 - Release of SLF4J 1.5.11</h3>
-----------------------------------------------------------------------
Summary of changes:
.../src/main/java/org/slf4j/LoggerFactory.java | 8 ++++----
slf4j-site/src/site/pages/news.html | 6 ++++++
2 files changed, 10 insertions(+), 4 deletions(-)
hooks/post-receive
--
SLF4J: Simple Logging Facade for Java
More information about the slf4j-dev
mailing list