Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 644EA172F2 for ; Fri, 3 Oct 2014 21:36:34 +0000 (UTC) Received: (qmail 88627 invoked by uid 500); 3 Oct 2014 21:36:34 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 88550 invoked by uid 500); 3 Oct 2014 21:36:34 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 88538 invoked by uid 99); 3 Oct 2014 21:36:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 21:36:34 +0000 Date: Fri, 3 Oct 2014 21:36:34 +0000 (UTC) From: "Mark Spadoni (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AVRO-1591) Java - handle hashCode / equals / toString in SpecificRequestor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Spadoni updated AVRO-1591: ------------------------------- Attachment: AVRO-1591.patch Removed old proxyToString helper; consolidated unit test > Java - handle hashCode / equals / toString in SpecificRequestor > --------------------------------------------------------------- > > Key: AVRO-1591 > URL: https://issues.apache.org/jira/browse/AVRO-1591 > Project: Avro > Issue Type: Bug > Components: java > Reporter: Mark Spadoni > Attachments: AVRO-1591.patch, AVRO-1591.patch > > > SpecificRequestor does not handle hashCode / equals / toString in its invoke method. This problem cropped up when using commons-pool2's GenericKeyedObjectPool.create(), which attempts to put pool object wrappers into a map, keying off the original object: > objectDeque.getAllObjects().put(p.getObject(), p); > The put calls hashCode() which is not handled, resulting in an AvroRemoteException. > See proposed patch for details. -- This message was sent by Atlassian JIRA (v6.3.4#6332)