commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1362978 - in /commons/proper/logging/trunk: RELEASE-NOTES.txt src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
Date Wed, 18 Jul 2012 15:19:22 GMT
Author: sebb
Date: Wed Jul 18 15:19:22 2012
New Revision: 1362978

URL: http://svn.apache.org/viewvc?rev=1362978&view=rev
Log:
LOGGING-130 - Potential missing privileged block for class loader

Modified:
    commons/proper/logging/trunk/RELEASE-NOTES.txt
    commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java

Modified: commons/proper/logging/trunk/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewvc/commons/proper/logging/trunk/RELEASE-NOTES.txt?rev=1362978&r1=1362977&r2=1362978&view=diff
==============================================================================
--- commons/proper/logging/trunk/RELEASE-NOTES.txt (original)
+++ commons/proper/logging/trunk/RELEASE-NOTES.txt Wed Jul 18 15:19:22 2012
@@ -17,6 +17,9 @@
 
 -->
 
+TODO - rework notes to incorporate: Changes since 1.1.1
+LOGGING-130 - Potential missing privileged block for class loader
+
 $Id$
 
                            Commons Logging Package

Modified: commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java?rev=1362978&r1=1362977&r2=1362978&view=diff
==============================================================================
--- commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
(original)
+++ commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
Wed Jul 18 15:19:22 2012
@@ -1322,7 +1322,8 @@ public class LogFactoryImpl extends LogF
         while (current != null) {
             if (current == c2)
                 return c1;
-            current = current.getParent();
+            // current = current.getParent();
+            current = getParentClassLoader(current);
         }
        
         // scan c2's ancestors to find c1
@@ -1330,7 +1331,8 @@ public class LogFactoryImpl extends LogF
         while (current != null) {
             if (current == c1)
                 return c2;
-            current = current.getParent();
+            // current = current.getParent();
+            current = getParentClassLoader(current);
         }
 
         return null;



Mime
View raw message