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

Key: XSTR-478
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Joerg Schaible
Reporter: Hari Krishna Dara
Votes: 0
Watchers: 0
Operations

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

Specifying default implementation for polymorphic enums doesn't work

Created: 11/Feb/08 12:05 PM   Updated: 25/Feb/08 05:02 PM
Component/s: None
Affects Version/s: 1.2.2
Fix Version/s: 1.3

File Attachments: 1. Java Source File XSTR478.java (0.7 kb)


JDK version and platform: Sun 1.5.0_08 for Windows


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

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Hari Krishna Dara - 11/Feb/08 12:31 PM
JUnit test case that currently fails.

Joerg Schaible - 11/Feb/08 04:38 PM
I made the necessary changes on the head revision. You may give it a try.

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