Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3550

Allow sealed traits to be polymorphically serialized and deserialized

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Scala

    Description

      Currently the driver only supports sealed classes as the base for polymorphic serialization//deserialization. As the sealed class itself isn't a case class (as extending case classes is generally a terrible idea) they are effectively abstract anyway. So, sealed traits or abstract classes should be first-class citizens, as only their subclasses matter. The implementation of this improvement would require discriminating between abstract and concrete supertypes.

      Attachments

        Activity

          People

            Unassigned Unassigned
            popplewell Georgi Chochov
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: