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 B8D28200B87 for ; Mon, 19 Sep 2016 10:44:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B766E160ACC; Mon, 19 Sep 2016 08:44:22 +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 000C5160ABC for ; Mon, 19 Sep 2016 10:44:21 +0200 (CEST) Received: (qmail 8671 invoked by uid 500); 19 Sep 2016 08:44:21 -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 8662 invoked by uid 99); 19 Sep 2016 08:44:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 08:44:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7DC032C0D5A for ; Mon, 19 Sep 2016 08:44:20 +0000 (UTC) Date: Mon, 19 Sep 2016 08:44:20 +0000 (UTC) From: =?utf-8?Q?Mikael_St=C3=A5ldal_=28JIRA=29?= To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-1593) Concrete Filter implementations should override equals and hashCode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Sep 2016 08:44:22 -0000 [ https://issues.apache.org/jira/browse/LOG4J2-1593?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D155= 02737#comment-15502737 ]=20 Mikael St=C3=A5ldal commented on LOG4J2-1593: ---------------------------------------- OK, given the current implementation of the filter framework, it seems to b= e necessary. Just make sure to document that third-party Filters need to do= it. > Concrete Filter implementations should override equals and hashCode > ------------------------------------------------------------------- > > Key: LOG4J2-1593 > URL: https://issues.apache.org/jira/browse/LOG4J2-1593 > Project: Log4j 2 > Issue Type: Improvement > Components: Filters > Reporter: Remko Popma > Fix For: 2.8 > > > For {{CompositeFilter.remove(Filter)}} to work correctly, concrete Filter= implementations should override {{equals}} and {{hashCode}}.=20 > This is because CompositeFilter uses List.remove(Object), comparing by eq= uality. Applications that keep a reference to the Filter object that was re= gistered will work, but for example registering and unregistering serialize= d and deserialized instances via JMX will not work without this. -- 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