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

have JAXBElementProvider look for @XmlJavaTypeAdapter on the interfaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.7, 2.2.8, 2.2.9
    • 2.2.10, 2.3
    • JAX-RS
    • None

    Description

      When the return type of a JAX-RS annotated method is an interface, and the interface has a @JavaXmlTypeAdapter on it, the JAXBElementProvider should find that adapter so it can do the appropriate conversion. Per Sergey:

      "At the moment JAXBElementProvider is capable of working with @XmlJavaTypeAdapter but it does not check the interfaces. The workaround : add @XmlJavaTypeAdapter as a method annotation to getAll() or to BaseballCardImpl. [...] but I can see that the fix can be trivial in this case "

      Attachments

        Activity

          People

            Unassigned Unassigned
            gilesp Peter Giles
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: