Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 076F0200BB9 for ; Mon, 7 Nov 2016 16:00:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0601D160AEC; Mon, 7 Nov 2016 15:00:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 50337160AEB for ; Mon, 7 Nov 2016 15:59:59 +0100 (CET) Received: (qmail 75203 invoked by uid 500); 7 Nov 2016 14:59:58 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 75194 invoked by uid 99); 7 Nov 2016 14:59:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2016 14:59:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5B04D2C0D55 for ; Mon, 7 Nov 2016 14:59:58 +0000 (UTC) Date: Mon, 7 Nov 2016 14:59:58 +0000 (UTC) From: "Joern Huxhorn (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-1675) Compile-time incompatibility regarding SimpleMessage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 07 Nov 2016 15:00:00 -0000 [ https://issues.apache.org/jira/browse/LOG4J2-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15644406#comment-15644406 ] Joern Huxhorn commented on LOG4J2-1675: --------------------------------------- I know. That's why I gave this a "minor" priority. Just wanted to mention it as in "If you see something, say something". ;) It was mainly meant as a "be aware that this potential problem exists" thing. > 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.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org