You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ryan Blue (JIRA)" <ji...@apache.org> on 2014/09/20 01:37:34 UTC

[jira] [Created] (AVRO-1589) [Java] ReflectData.AllowNulls will create incompatible Schemas for primitive types

Ryan Blue created AVRO-1589:
-------------------------------

             Summary: [Java] ReflectData.AllowNulls will create incompatible Schemas for primitive types
                 Key: AVRO-1589
                 URL: https://issues.apache.org/jira/browse/AVRO-1589
             Project: Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.7.7
            Reporter: Ryan Blue
            Assignee: Ryan Blue


{{ReflectData.AllowNulls}} will always create nullable types, even if the reflected object has primitive fields. When assigning a null to a primitive field, Java always throws a {{NullPointerException}}. I think the right thing to do is to allow nulls for any {{Object}} and return required schemas for primitive types.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)