You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Mark Spadoni (JIRA)" <ji...@apache.org> on 2014/10/02 22:38:33 UTC
[jira] [Updated] (AVRO-1591) Java - handle hashCode / equals /
toString in SpecificRequestor
[ 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
> 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
>
>
> 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)