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] [Created] (SIS-297) Enum value lost at unmarshalling time if the name is composed of more than one word
Date Thu, 10 Sep 2015 10:19:45 GMT
Martin Desruisseaux created SIS-297:
---------------------------------------

             Summary: 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.5, 0.4, 0.3
            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