XStream

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.

Activity

Hide
Joerg Schaible added a comment -

Fixed in head revision.

Show
Joerg Schaible added a comment - Fixed in head revision.
Hide
Joerg Schaible added a comment -

Closing issues before next release.

Show
Joerg Schaible added a comment - Closing issues before next release.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: