[ 
https://issues.apache.org/jira/browse/AVRO-796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doug Cutting updated AVRO-796:
------------------------------

    Attachment: AVRO-796.patch

I believe the null case is handled by instanceof in the equals implementation 
for each Schema subclass.

http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.20.2

I've attached an explicit test for this in a method that's called for each type 
of schema, and this passes for me. 

> Problems using Schema.equals() method
> -------------------------------------
>
>                 Key: AVRO-796
>                 URL: https://issues.apache.org/jira/browse/AVRO-796
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.5.0
>            Reporter: Douglas Kaminsky
>            Priority: Minor
>         Attachments: AVRO-796.patch
>
>
> Schema.equals() does not properly handle null argument - the usual expected 
> behavior is that it should return false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to