XStream

Specifying default implementation for polymorphic enums doesn't work

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.2
  • Fix Version/s: 1.3
  • Component/s: None
  • Labels:
    None
  • JDK version and platform:
    Sun 1.5.0_08 for Windows

Description

I have an interface implemented by a couple of enum classes and I am trying to setup one of them as the default implementation for that interface using XStream.addDefaultImplementation(). This doesn't however prevent the class attribute from getting encoded into XML. After discussing the problem in the user mailing list, Jorg suggested that it should be a bug. I will try to create and attach a unit test to make fixing this issue easier, but for reference, here is the thread where this discussion happened:

http://article.gmane.org/gmane.comp.java.xstream.user/4222

Activity

Hide
Hari Krishna Dara added a comment -

JUnit test case that currently fails.

Show
Hari Krishna Dara added a comment - JUnit test case that currently fails.
Hide
Joerg Schaible added a comment -

I made the necessary changes on the head revision. You may give it a try.

Show
Joerg Schaible added a comment - I made the necessary changes on the head revision. You may give it a try.
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: