Skip to content

Cannot set com.thoughtworks.xstream.converters.basic.DateConverter in XStreamMarshaller.setConverters(Converter[]) [SWS-100] #255

Closed
@gregturn

Description

@gregturn

Jesus Ramos opened SWS-100 and commented

Method XStreamMarshaller.setConverters can only accept an array of Converter, which is not the root class in the converter hierarchy in XStream. The root class is ConverterMatcher, which is parent to Converter. I tried to set a DateConverter and instantiation of the Marshaller threw a ClassCastException. I suggest the method signature be changed to accept an array of ConverterMatcher as a parameter.


Affects: 1.0 M3

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions