/hg/release/icedtea7-forest-2.3/jdk: 8005615: Java Logger fails ...

omajid at icedtea.classpath.org omajid at icedtea.classpath.org
Thu Feb 7 16:43:16 PST 2013


changeset 635d562a25be in /hg/release/icedtea7-forest-2.3/jdk
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=635d562a25be
author: Omair Majid <omajid at redhat.com>
date: Thu Feb 07 19:42:50 2013 -0500

	8005615: Java Logger fails to load tomcat logger implementation (JULI)

	Synchronize logger implementation with the fix applied to jdk7u


diffstat:

 src/share/classes/java/util/logging/Logger.java |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 272466e46b3f -r 635d562a25be src/share/classes/java/util/logging/Logger.java
--- a/src/share/classes/java/util/logging/Logger.java	Thu Feb 07 16:37:15 2013 +0000
+++ b/src/share/classes/java/util/logging/Logger.java	Thu Feb 07 19:42:50 2013 -0500
@@ -307,7 +307,7 @@
         LogManager manager = LogManager.getLogManager();
         SecurityManager sm = System.getSecurityManager();
         if (sm != null && !SystemLoggerHelper.disableCallerCheck) {
-            // 0: Reflection 1: Logger.getLoggerContext 2: Logger.getLogger 3: caller
+            // 0: Reflection 1: Logger.demandLogger 2: Logger.getLogger 3: caller
             final int SKIP_FRAMES = 3;
             Class<?> caller = sun.reflect.Reflection.getCallerClass(SKIP_FRAMES);
             if (caller.getClassLoader() == null) {
@@ -424,7 +424,7 @@
 
         // all loggers in the system context will default to
         // the system logger's resource bundle
-        Logger result = demandLogger(name, null);
+        Logger result = manager.demandSystemLogger(name, SYSTEM_LOGGER_RB_NAME);
         return result;
     }
 



More information about the distro-pkg-dev mailing list