1
0

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:
Simon Kitching
2006-01-20 07:45:22 +00:00
parent ced5aa9dc7
commit 8ba8c0f9ef

View File

@@ -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