Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367720

Summary: Overlapping XmlPath mappings to separate bean fails
Product: z_Archived Reporter: Rob McAuliffe <bugs.eclipse.org>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: blaise.doughan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
A test case that should succeed if merging complex type overlapping XmlPath annotations worked none

Description Rob McAuliffe CLA 2012-01-02 19:46:19 EST
Created attachment 208925 [details]
A test case that should succeed if merging complex type overlapping XmlPath annotations worked

Using Moxy to map two properties of a bean (that are themselves XML beans) to an overlapping path silently drops the deeper mapping. The output XML only contains the shallower mapping XML.

For example, @XmlPath("a/b/c") is overridden by another specified @XmlPath("a/b") in the following snippet.  Expected is for the elements and attributes to be merged in the same way as @XmlPath(".") does.

Snippet:
----------------------------------------------------

@XmlPath("a/b/c")
private SomeXmlBean first;

@XmlPath("a/b")
private SomeXmlBean second;

----------------------------------------------------
Comment 1 Rob McAuliffe CLA 2012-02-19 16:26:36 EST
To be clear, in the above scenario the bean named 'first' does note contribute to the output, whereas it should.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:28:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink