Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Not A Bug
    • Affects Version/s: 1.4.2
    • Fix Version/s: Upcoming
    • Component/s: Annotations
    • Labels:
      None
    • JDK version and platform:
      Oracle 1.6.0_30 for Windows

      Description

      When I specify itemFieldName and keyFieldName in @XStreamImplicit annotation, key field is not saved to xml:

      with @XStreamImplicit
      <test>
      <entry>
      <string>v1</string>
      <string>abc</string>
      </entry>
      </test>
      with @XStreamImplicit(keyFieldName="key", itemFieldName="item")
      <test>
      <item>abc</item>
      </test>

      Also, @XStreamImplicit is not equivalent to XStream.addImplicit... methods as it lacks parameters from it's variants.
      Also, XStream.addImplicitMap lacks parameter to specify keyType (as is possible to specify itemType).

      1. Test2.java
        1 kB
        Dominik Derwinski

        People

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

          Dates

          • Created:
            Updated:
            Resolved: