abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Couturier (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ABDERA-352) @Extension annotated List<> are not serialized
Date Fri, 18 Oct 2013 13:19:41 GMT
Nicolas Couturier created ABDERA-352:
----------------------------------------

             Summary: @Extension annotated List<> are not serialized
                 Key: ABDERA-352
                 URL: https://issues.apache.org/jira/browse/ABDERA-352
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 1.2
            Reporter: Nicolas Couturier
            Priority: Minor


The following code:

    @Entry
    public class EntryWithListOfSimpleExtensions {
        @Extension(prefix="foo", ns="http://example.org/foo", name="ext", simple=true)
        public List<String> getSimpleExtensions() {
            return Arrays.asList("foo", "bar", "baz");
        }
    }

produces the following output:

    <?xml version='1.0' encoding='UTF-8'?>
    <entry xmlns="http://www.w3.org/2005/Atom">
      <foo:ext xmlns:foo="http://example.org/foo">foo, bar, baz</foo:ext>
    </entry>

while the following output could / would be expected:

     <?xml version='1.0'?>
     <entry xmlns="http://www.w3.org/2005/Atom">
       <foo:ext xmlns:s="http://example.org/foo">
         foo
       </foo:ext>
        <foo:ext xmlns:s="http://example.org/foo">
         bar
       </foo:ext>
        <foo:ext xmlns:s="http://example.org/foo">
         baz
       </foo:ext>
      </entry>



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message