LOGGING-130 - Potential missing privileged block for class loader
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -17,6 +17,9 @@
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
TODO - rework notes to incorporate: Changes since 1.1.1
|
||||||
|
LOGGING-130 - Potential missing privileged block for class loader
|
||||||
|
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
Commons Logging Package
|
Commons Logging Package
|
||||||
|
|||||||
@@ -1322,7 +1322,8 @@ public class LogFactoryImpl extends LogFactory {
|
|||||||
while (current != null) {
|
while (current != null) {
|
||||||
if (current == c2)
|
if (current == c2)
|
||||||
return c1;
|
return c1;
|
||||||
current = current.getParent();
|
// current = current.getParent();
|
||||||
|
current = getParentClassLoader(current);
|
||||||
}
|
}
|
||||||
|
|
||||||
// scan c2's ancestors to find c1
|
// scan c2's ancestors to find c1
|
||||||
@@ -1330,7 +1331,8 @@ public class LogFactoryImpl extends LogFactory {
|
|||||||
while (current != null) {
|
while (current != null) {
|
||||||
if (current == c1)
|
if (current == c1)
|
||||||
return c2;
|
return c2;
|
||||||
current = current.getParent();
|
// current = current.getParent();
|
||||||
|
current = getParentClassLoader(current);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user