logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joern Huxhorn (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-1675) Compile-time incompatibility regarding SimpleMessage
Date Mon, 07 Nov 2016 13:39:58 GMT
Joern Huxhorn created LOG4J2-1675:

             Summary: Compile-time incompatibility regarding SimpleMessage
                 Key: LOG4J2-1675
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1675
             Project: Log4j 2
          Issue Type: Bug
          Components: API
    Affects Versions: 2.6
            Reporter: Joern Huxhorn
            Priority: Minor

Commit 85a46bbe changed {{SimpleMessage}} and {{ReusableSimpleMessage}} in such a way that
previously valid code turned invalid because of ambiguous method calls.

// previously valid
logger.debug(new SimpleMessage("simple message"));
// now only valid with cast
logger.debug((Message)new SimpleMessage("simple message"));

Just wanted to holler to make sure you are aware of this issue.

This message was sent by Atlassian JIRA

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

View raw message