[slf4j-dev] [Bug 62] New: jcl104-over-slf4j not recompiled with modified LocationAwareLogger
bugzilla-daemon at pixie.qos.ch
bugzilla-daemon at pixie.qos.ch
Tue Sep 11 16:35:34 CEST 2007
http://bugzilla.slf4j.org/show_bug.cgi?id=62
Summary: jcl104-over-slf4j not recompiled with modified
LocationAwareLogger
Product: SLF4J
Version: 1.4.x
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: blocker
Priority: P1
Component: Implementations
AssignedTo: dev at slf4j.org
ReportedBy: Filip.Jirsak at gmail.com
Log level contstants was modified in LocationAwareLogger.java (see bug #23).
But jcl104-over-slf4j was not recompiled after that change. Because java
compiler sometime puts constants into target method, there are sometime old
values of these constants in jcl104-over-slf4j classes in
http://www.slf4j.org/dist/slf4j-1.4.3.zip
For example, in class org.apache.commons.logging.impl.SLF4JLocationAwareLog
there is following method:
public void warn(Object message) {
logger.log(null, FQCN, LocationAwareLogger.WARN_INT,
String.valueOf(message), null);
}
In current class it is compiled as:
public void warn(Object message) {
logger.log(null, FQCN, 2, String.valueOf(message), null);
}
because 2 was old value of LocationAwareLogger.WARN_INT. It results in
following exception:
java.lang.IllegalArgumentException: 2 not a valid level value
at ch.qos.logback.classic.Logger.log(Logger.java:820)
at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.warn(SLF4JLocat
ionAwareLog.java:141)
Perhaps all classes of sl4j needs recompilation.
--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the slf4j-dev
mailing list