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

Doug Cutting commented on AVRO-720:
-----------------------------------

I'd like to remove this from the 1.5.0 bug list.  The messages in CHANGES.txt 
for 1.4's AVRO-637 and AVRO-605 are listed in the "incompatible" section.  
Combine those too, and it's already documented that types that were generated 
as 'GenericData.Array<Utf8>' will now be declared with 'List<CharSequence>'.  
Constructing a value that can be assigned to that can be done with 'new 
GenericData.Array<CharSequence>()' but no longer with  'new 
GenericData.Array<Utf8>()', due to the way Java generics work. Should we add 
that information to CHANGES.txt, should we add an FAQ or should we simply close 
this?

> Generated code for arrays should accept extensions of array content type
> ------------------------------------------------------------------------
>
>                 Key: AVRO-720
>                 URL: https://issues.apache.org/jira/browse/AVRO-720
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Jeff Hammerbacher
>            Assignee: Doug Cutting
>             Fix For: 1.5.0
>
>         Attachments: AVRO-720.patch
>
>
> Discovered when I upgraded a server from 1.3 to 1.4: trying to stuff a 
> GenericData.Array<Utf8> object into a List<CharSequence> does not work; Avro 
> should generate List<? implements CharSequence> instead. The same holds for 
> other array types.

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

Reply via email to