XStream

Prevent usage of implicit collection for non-Collection types

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.2
  • Fix Version/s: 1.x Maintenance
  • Component/s: Core
  • Labels:
    None

Description

It happened more than once that users declare an implicit collection for a member that is not of a Collection type. However, XStream neither chokes at declaration nor at serialization, but it fails to deserialize the generated XML.

Activity

Hide
Joerg Schaible added a comment -

Such an attempt throws now an InitializerException.

Show
Joerg Schaible added a comment - Such an attempt throws now an InitializerException.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: