Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22374

Reduce fragility of EnumSet/EnumMap marshalling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • Clustering

    Description

      The marshallers for EnumSet and EnumMap currently rely on reflection (in specific cases) to obtain the Enum Class from which the set/map was constructed. The current implementation relies on a specific named field.

      This is not ideal, as names of fields can vary across JDK implementations and versions.
      A less fragile solution involves looking for the field of the expected type, i.e. Class.

      Attachments

        Issue Links

          Activity

            People

              bstansbe@redhat.com Brian Stansberry
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: