XStream
  1. XStream
  2. XSTR-233

Integer[] unmarshalled as int[]

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.3
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      IBM JDK 1.3.1_02 for Windows

      Description

      When marshalling an untyped container (e.g., Object[]), both int[] and Integer[] are put inside <int-array> elements. When unmarshalling, XStream instantiates both types into int[].

      XStream should probably delineate between int[] and Integer[] in the XML by using <integer-array> elements for the latter. The same thing applies to all primitives and their Object equivalents.

      Test case attached.

        Issue Links

          People

          • Assignee:
            Unassigned
            Reporter:
            Brad Koehn
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: