[
https://jira.codehaus.org/browse/XSTR-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joerg Schaible closed XSTR-694.
-------------------------------
Resolution: Not A Bug
Closing then.
> 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;
> {code:java}
> protected void writeItem(Object item, MarshallingContext context,
> HierarchicalStreamWriter writer) {
> writer.startNode("SlipItem");
> context.convertAnother(item);
> writer.endNode();
> }
> {code}
> 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;
> {code:java}
> XStream xs = new XStream();
> xs.autodetectAnnotations(true);
> {code}
--
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>