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

Do not require @XmlRootElement annotation in JAXB FallbackTypeConverter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.17.0
    • camel-jaxb
    • None
    • 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

            davsclaus Claus Ibsen
            mbasovni Martin BasovnĂ­k
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: