[
https://issues.apache.org/jira/browse/AVRO-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982882#action_12982882
]
Doug Cutting commented on AVRO-730:
-----------------------------------
Chase: good point, I didn't think that it would leave a duplicate element,
which would be bad. It sounds like you've thought this through. I'm now fine
with the current patch. +1 Or, I'd be fine with (2) if we added a javadoc
comment noting that the reference is retained. If folks really want to remove
a reference they still could by setting a value to null before removing it.
> Implement set and remove methods from List interface on GenericData.Array
> -------------------------------------------------------------------------
>
> Key: AVRO-730
> URL: https://issues.apache.org/jira/browse/AVRO-730
> Project: Avro
> Issue Type: New Feature
> Components: java
> Affects Versions: 1.4.1
> Reporter: Chase Bradford
> Assignee: Chase Bradford
> Fix For: 1.5.0
>
> Attachments: AVRO-730.patch
>
>
> GenericData.Array throws an UnsupportedOperationException when set() or
> remove() are used on an instance of it. I think it's reasonable for those
> methods to work though, since their implementation is simple and inline with
> most other List types.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.