XStream
  1. XStream
  2. XSTR-412

XStreamImplicit throws NPE when used on un-typed collection

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3
    • Component/s: Annotations
    • Labels:
      None
    • JDK version and platform:
      JDK 1.6 for Windows

      Description

      Assume I have the following object:

      public class Untyped {

      @XStreamImplicit
      private List list = new ArrayList();

      }

      Calling

      Annotations.configureAliases(xs, Untyped.class);

      leads to a NullPointerException because XStream cannot find a generic type of the list.

        People

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

          Dates

          • Created:
            Updated:
            Resolved: