Hakan Junior created XSTR-694:
---------------------------------

             Summary: First Item in collection rendered ignoring the 
Annotations but others are correct
                 Key: XSTR-694
                 URL: https://jira.codehaus.org/browse/XSTR-694
             Project: XStream
          Issue Type: Bug
          Components: Converters
    Affects Versions: 1.4.2
            Reporter: Hakan Junior
            Assignee: Joerg Schaible


I've created a Converter by extending the CollectionConverter. I overrided 
method as;

protected void writeItem(Object item, MarshallingContext context, 
HierarchicalStreamWriter writer) {
   writer.startNode("SlipItem");
   context.convertAnother(item);
   writer.endNode();
}
I registered it using registerConverter method and in the result; the first 
item rendered ignoring the Annotations (like XStreamAlias, XStreamOmitField), 
but the others are correct.

If it matters i create XStream object as;
XStream xs = new XStream();
xs.autodetectAnnotations(true);


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
    <a 
href="http://xircles.codehaus.org/manage_email";>http://xircles.codehaus.org/manage_email</a>
</p>

Reply via email to