History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XSTR-412
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Joerg Schaible
Reporter: Benjamin Broll
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XStream

XStreamImplicit throws NPE when used on un-typed collection

Created: 06/Jul/07 08:17 AM   Updated: 25/Feb/08 05:01 PM
Component/s: Annotations
Affects Version/s: 1.2.2
Fix Version/s: 1.3

File Attachments: 1. Java Source File XStreamImplicitUntypedTest.java (2 kb)


JDK version and platform: JDK 1.6 for Windows


 Description  « Hide
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.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Joerg Schaible - 23/Nov/07 05:22 PM
Fixed in head revision.

Joerg Schaible - 25/Feb/08 05:01 PM
Closing issues before next release.