sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SIS-297) Enum value lost at unmarshalling time if the name is composed of more than one word
Date Thu, 10 Sep 2015 10:44:45 GMT

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

Martin Desruisseaux resolved SIS-297.
-------------------------------------
    Resolution: Fixed

> Enum value lost at unmarshalling time if the name is composed of more than one word
> -----------------------------------------------------------------------------------
>
>                 Key: SIS-297
>                 URL: https://issues.apache.org/jira/browse/SIS-297
>             Project: Spatial Information Systems
>          Issue Type: Bug
>          Components: Metadata
>    Affects Versions: 0.3, 0.4, 0.5
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>             Fix For: 0.6
>
>
> Unmarshalling of an enumeration value work as expected for simple words like {{"oceans"}},
but is lost for values like {{"imageryBaseMapsEarthCover"}}. The reason is that the {{EnumAdapter.name(String)}}
method does not insert underscore between words (i.e. converts {{"imageryBaseMapsEarthCover"}}
to {{"IMAGERYBASEMAPSEARTHCOVER"}} instead of {{"IMAGERY_BASE_MAPS_EARTH_COVER"}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message