Another binary compatibility issue:The 1.3 introduction of put(String,String) in MDC produces a binary that is incompatible with any log4j 1.2.x whenever the compiler knows the type of the second argument to be String (which is usually the case).This can, of course, be avoided by casting such Strings to Object, but overall this is just another hurdle between 1.2 and 1.3 for ever so little benefit. Adding a "setProperty" or "putString" method instead akin to java.util.Properties would allow new code to use a safer API without hurting binary compatibility of recompiled legacy sources. -- Jess Holle Jess Holle wrote: Jess Holle wrote:P.S. As log4j 1.3 now stands, I'd think it would be tempting to repackage all of log4j 1.3 in org.apache.log4j2.* and call it log4j 2.0. That way you could have log4j 1.2 and 1.3/2.0 in the same classloader at the same time without having to worry about some legacy library that requires 1.2.x and some other than requires 1.3.x. As it stands now I worry about such issues cropping up more often than not.Also give that most legacy libraries won't be recompiled against a hypothetical 1.2.13 real soon, there is still something to be said for either: |
- Re: Log4j 1.3 Woes Jess Holle
- Re: Log4j 1.3 Woes Jess Holle
- Re: Log4j 1.3 Woes Elias Ross
- Re: Log4j 1.3 Woes Paul Smith
- Re: Log4j 1.3 Woes Jess Holle
- Re: Log4j 1.3 Woes Paul Smith
- log4j MBeans (was Re: Log4j 1.3 Wo... Jess Holle
- Re: log4j MBeans (was Re: Log4... Chris Custine
- Re: Log4j 1.3 Woes Jess Holle
- Re: Log4j 1.3 Woes Curt Arnold
- Re: Log4j 1.3 Woes Jess Holle
