Fix for java1.2: in that version, Boolean.valueOf(str) returns a new instance
each time, not one of Boolean.TRUE or Boolean.FALSE! git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370752 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -409,7 +409,7 @@ public abstract class LogFactory {
|
|||||||
if (props != null) {
|
if (props != null) {
|
||||||
String useTCCLStr = props.getProperty(TCCL_KEY);
|
String useTCCLStr = props.getProperty(TCCL_KEY);
|
||||||
if (useTCCLStr != null) {
|
if (useTCCLStr != null) {
|
||||||
if (Boolean.valueOf(useTCCLStr) == Boolean.FALSE) {
|
if (Boolean.valueOf(useTCCLStr).booleanValue() == false) {
|
||||||
// Don't use current context classloader when locating any
|
// Don't use current context classloader when locating any
|
||||||
// LogFactory or Log classes, just use the class that loaded
|
// LogFactory or Log classes, just use the class that loaded
|
||||||
// this abstract class. When this class is deployed in a shared
|
// this abstract class. When this class is deployed in a shared
|
||||||
|
|||||||
Reference in New Issue
Block a user