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

Return type list of a typed type, e.g. List<Type<Typee>>, leads to ClassCastException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.6
    • Fix Version/s: 2.7.8, 2.6.11
    • Component/s: JAXB Databinding
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If you use a list of a typed type as the return type (yes, a lot of types ) in a CXF service you will get a

      java.lang.ClassCastException: java.util.ArrayList cannot be cast to some.class.Name
      

      exception.

      I attached a small example showing the problem for CXF 2.7.6.

      I'm not quite sure if this really is a CXF JAXBDatabinding problem or if it is caused by something else.

        Attachments

        1. cfx-list-typed-type.zip
          19 kB
          Kai Stapel

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              kai.stapel Kai Stapel
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: