You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2017/06/08 06:58:18 UTC
[jira] [Commented] (LOG4J2-1675) Compile-time incompatibility
regarding SimpleMessage
[ https://issues.apache.org/jira/browse/LOG4J2-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042303#comment-16042303 ]
Ralph Goers commented on LOG4J2-1675:
-------------------------------------
Are we going to do anything with this or should it just be closed?
> 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.
> {code:java}
> // previously valid
> logger.debug(new SimpleMessage("simple message"));
> // now only valid with cast
> logger.debug((Message)new SimpleMessage("simple message"));
> {code}
> Just wanted to holler to make sure you are aware of this issue.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)