avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Oliver (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-259) GenericData.Array should fail fast when constructed with a null Schema
Date Fri, 18 Dec 2009 17:18:18 GMT

    [ https://issues.apache.org/jira/browse/AVRO-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12792534#action_12792534
] 

Kevin Oliver commented on AVRO-259:
-----------------------------------

Patch coming that includes a testcase.

The patch also includes fixing some missing @Overrides and 2 unnecessary @SuppressWarnings.
These can be removed if the committers would prefer they were not included.

> GenericData.Array should fail fast when constructed with a null Schema
> ----------------------------------------------------------------------
>
>                 Key: AVRO-259
>                 URL: https://issues.apache.org/jira/browse/AVRO-259
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>            Reporter: Kevin Oliver
>            Priority: Trivial
>             Fix For: 1.3.0
>
>
> GenericData.Array's constructor takes a Schema but doesn't validate that it is not null.
The schema is assumed to be not null in other places (equals() and hashCode()) which then
trigger NPEs. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message