You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Rene Nowak (JIRA)" <ji...@apache.org> on 2017/12/28 09:35:00 UTC

[jira] [Updated] (JOHNZON-150) Incorrect Mapping of EnumSet Field

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

Rene Nowak updated JOHNZON-150:
-------------------------------
    Description: 
If i try to serialize and deserialize an object with a field of type EnumSet i get an argument type mismatch. The reason is, that in this case Johnzon deserializes the field as type HashSet an throws an error when trying to set the field value.
I think the problem is in the method {{createCollectionMapping}} of the class {{Mappings}}.  

  was:
If try to serialize and deserialize an object with a field of type EnumSet i get an argument type mismatch. The reason is, that in this case Johnzon deserializes the field as type HashSet an throws an error when trying to set the field value.
I think the problem is in the method {{createCollectionMapping}} of the class {{Mappings}}.  


> Incorrect Mapping of EnumSet Field
> ----------------------------------
>
>                 Key: JOHNZON-150
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-150
>             Project: Johnzon
>          Issue Type: Bug
>          Components: Mapper
>    Affects Versions: 1.1.6
>            Reporter: Rene Nowak
>
> If i try to serialize and deserialize an object with a field of type EnumSet i get an argument type mismatch. The reason is, that in this case Johnzon deserializes the field as type HashSet an throws an error when trying to set the field value.
> I think the problem is in the method {{createCollectionMapping}} of the class {{Mappings}}.  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)