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

Reduce fragility of EnumSet/EnumMap marshalling

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: