Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4027

Aegis BeanType does not ignore super type of java.lang.Enum

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.3.9, 2.4.6, 2.5.2
    • Component/s: Aegis Databinding
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When using aegis combined with a mapping file on an enum type, aegis ends up trying to create a type for java.lang.Enum, and falls over with an NPE in the process.

      It seems to me that when getting the super type in BeanType.getSuperType(), there are some other classes that should be excluded (line 584), java.lang.Enum and java.io.Serializable (the latter may be the super type if the current type is an interface that extends it).

        Attachments

        1. CXF-4027.patch
          5 kB
          James Phillpotts

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              mrpotes James Phillpotts
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: