XStream
  1. XStream
  2. XSTR-694

First Item in collection rendered ignoring the Annotations but others are correct

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: Converters
    • Labels:
      None
    • JDK version and platform:
      Sun 1.6.27

      Description

      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);
      

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Hakan Junior
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: