XStream
  1. XStream
  2. XSTR-478

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

      1. XSTR478.java
        0.7 kB
        Hari Krishna Dara

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Hari Krishna Dara
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: