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

Sharmarke Aden updated AVRO-1511:
---------------------------------

    Description: 
Sometimes you want to pass your Avro bean around to various systems in  your 
infrastructure and don't want anyone to alter the state of the bean. 

Currently one can prevent changes to various field by preventing the generation 
of setter methods but for array and map fields one can still get the array/map 
and perform mutating operations (i.e. add new element to the list).


  was:
Sometimes you want to pass your Avro bean around to various systems in  your 
infrastructure and don't want anyone to alter the state of the bean. 

Currently one can prevent changes to various field by preventing the generation 
of setter methods but for array and map fields one can still get the array/map 
and perform mutating operations (i.e. add new element a list).



> Add Support for Immutable Array and Map Fields
> ----------------------------------------------
>
>                 Key: AVRO-1511
>                 URL: https://issues.apache.org/jira/browse/AVRO-1511
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.7.6
>            Reporter: Sharmarke Aden
>            Assignee: Doug Cutting
>            Priority: Minor
>
> Sometimes you want to pass your Avro bean around to various systems in  your 
> infrastructure and don't want anyone to alter the state of the bean. 
> Currently one can prevent changes to various field by preventing the 
> generation of setter methods but for array and map fields one can still get 
> the array/map and perform mutating operations (i.e. add new element to the 
> list).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to