Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.4
    • Fix Version/s: 1.4.5
    • Component/s: Annotations
    • Labels:
      None

      Description

      One of the design patterns employed in Jenkins is to provide multiple implmenetations that implement the same contract so that common cases run faster. Think of EnumSet in JDK.

      To facilitate this kind of situation, it is desirable for those implmentation-only subtypes (JumboEnumSet vs RegularEnumSet) not to leak into the persisted form.

      I added XStreamSerializeAs to achieve this. You put this on the likes of EnumSet, and all subtypes get persisted as EnumSet — combined with suitable Converter that instantiates the right subtype, this works well.

      1. XSTR-726.diff
        4 kB
        Kohsuke Kawaguchi

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Kohsuke Kawaguchi
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: