logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37735] New: - 1.3 compatible sources are binary incompatible with 1.3 if compiled with 1.2
Date Thu, 01 Dec 2005 13:20:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37735>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37735

           Summary: 1.3 compatible sources are binary incompatible with 1.3
                    if compiled with 1.2
           Product: Log4j
           Version: 1.3alpha
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: Other
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: jessh@ptc.com


Even after cleansing source code using log4j to compile and run cleanly with
log4j 1.3 (alpha 7 or HEAD), the resulting binaries are incompatible (produce
VerifyErrors) when they are compiled against 1.2 (1.2.13rc2) and then run with 1.3.

Worse, the incompatibility surrounds use of Level with Logger, i.e. rather
common usage.

The problem turns out to be the fact that log4j 1.3 flips the inheritance
hierarchy so that Priority is a subclass of Logger rather than vice versa as was
the case in 1.2.  This drives the class verifier nuts in cases.

I have produced a patch that I believe is quite clean and will attach it.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message