[
https://issues.apache.org/jira/browse/CAMEL-9649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15175317#comment-15175317
]
Martin Basovník commented on CAMEL-9649:
----------------------------------------
{{type.getPackage()}} was returning {{null}}.
https://github.com/basovnik/camel/commit/9a87ad3e25a1b95fffb517e69437ece59ee5b49a?diff=unified#diff-ea4b0f6cbed780ed0e41f4cbbdc75aa2R337
> Do not require @XmlRootElement annotation in JAXB FallbackTypeConverter
> -----------------------------------------------------------------------
>
> Key: CAMEL-9649
> URL: https://issues.apache.org/jira/browse/CAMEL-9649
> Project: Camel
> Issue Type: Improvement
> Components: camel-jaxb
> Affects Versions: 2.17.0
> Reporter: Martin Basovník
> Fix For: 2.18.0
>
>
> 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}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)