[
https://issues.apache.org/jira/browse/AVRO-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting updated AVRO-182:
------------------------------
Attachment: AVRO-182.patch
Attaching a new version of the patch.
This adds a new method, Schema#getFullName(), that returns the
namespace-qualified name for named schemas. This is used by
GenericData.Record#equals() to efficiently check schema compatibility. I've
also updated a other places where fully-qualified names are used.
The equals methods for generated classes now check schema compatibility by
using == on class names.
This patch now conflicts with the patch for AVRO-185. Sigh.
> hashCode and equals are not consistent with compareTo
> -----------------------------------------------------
>
> Key: AVRO-182
> URL: https://issues.apache.org/jira/browse/AVRO-182
> Project: Avro
> Issue Type: Bug
> Components: java
> Reporter: Doug Cutting
> Assignee: Doug Cutting
> Fix For: 1.3.0
>
> Attachments: AVRO-182.patch, AVRO-182.patch, AVRO-182.patch
>
>
> Java's specific and generic APIs implement compareTo according to the schema,
> where some fields might be ignored. To be consistent, fields that are
> ignored when comparing for ordering should also be ignored when comparing for
> equality and for computing hashCodes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.