[jira] [Resolved] (ISIS-3316) JaxbService: remove potentially ambiguous methods from API

2022-12-21 Thread Andi Huber (Jira)


 [ 
https://issues.apache.org/jira/browse/ISIS-3316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andi Huber resolved ISIS-3316.
--
Resolution: Resolved

> JaxbService: remove potentially ambiguous methods from API
> --
>
> Key: ISIS-3316
> URL: https://issues.apache.org/jira/browse/ISIS-3316
> Project: Isis
>  Issue Type: Improvement
>  Components: Isis Core
>Reporter: Andi Huber
>Assignee: Andi Huber
>Priority: Major
> Fix For: 2.0.0-RC1
>
>
> Object JaxbService.fromXml(JAXBContext jaxbContext, String xml) 
> is potentially ambiguous. Meaning if multiple types are on the JAXBContext 
> with more than one having a @XmlRootElement(name = "root") annotation, then 
> the outcome (returned type) of above mentioned call is unpredictable without 
> warning.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (ISIS-3316) JaxbService: remove potentially ambiguous methods from API

2022-12-22 Thread Andi Huber (Jira)


 [ 
https://issues.apache.org/jira/browse/ISIS-3316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andi Huber resolved ISIS-3316.
--
Resolution: Resolved

For object graphs to work properly with JAXB, don't use @XmlRootElement(name = 
...) annotations, where there is a name clash among bound types.

> JaxbService: remove potentially ambiguous methods from API
> --
>
> Key: ISIS-3316
> URL: https://issues.apache.org/jira/browse/ISIS-3316
> Project: Isis
>  Issue Type: Improvement
>  Components: Isis Core
>Reporter: Andi Huber
>Assignee: Andi Huber
>Priority: Major
> Fix For: 2.0.0-RC1
>
>
> Object JaxbService.fromXml(JAXBContext jaxbContext, String xml) 
> is potentially ambiguous. Meaning if multiple types are on the JAXBContext 
> with more than one having a @XmlRootElement(name = "root") annotation, then 
> the outcome (returned type) of above mentioned call is unpredictable without 
> warning.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)