XStream
  1. XStream
  2. XSTR-362

1.1.2 -> 1.2.1 Incompatability -- Arrays-ArrayList

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.1
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      java version "1.4.2_11" on Linux

      Description

      Having a problem deserializing the following in 1.2.1
      (it does deserialize fine in 1.1.2)

      <list class="java.util.Arrays-ArrayList">
      <a>
      <string>cad w/o fees</string>
      <string>susp</string>
      <string>late</string>
      <string>badck</string>
      <string>other</string>
      <string>corp</string>
      </a>
      </list>

      The error I get is:

      Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException:
      java.util.Arrays-ArrayList : Can't locate java.util.Arrays-ArrayList
      class
      [java] at
      com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:49)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:72)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:60)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:76)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:26)
      [java] at
      com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:34)
      [java] at
      com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.determineType(AbstractReflectionConverter.java:263)
      [java] at
      com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:165)
      [java] at
      com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:121)
      [java] at
      com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)

      I need to get 1.2.1 to be backwards compatible somehow.

        People

        • Assignee:
          Unassigned
          Reporter:
          Padraic Renaghan
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: