Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9649

Do not require @XmlRootElement annotation in JAXB FallbackTypeConverter

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.17.0
    • Component/s: camel-jaxb
    • Labels:
      None
    • Estimated Complexity:
      Moderate

      Description

      We should fix method org.apache.camel.converter.jaxb.FallbackTypeConverter#isJaxbType. It can only handle beans with annotation @XmlRootElement now. But this annotation is not necessary. We should check if there is ObjectFactory.java class in current java package and explore this class if there is proper method returning JAXBElement<T> with annotation @XmlElementDecl.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              mbasovni Martin Basovník
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: