Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367720 - Overlapping XmlPath mappings to separate bean fails
Summary: Overlapping XmlPath mappings to separate bean fails
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 19:46 EST by Rob McAuliffe CLA
Modified: 2022-06-09 10:28 EDT (History)
1 user (show)

See Also:


Attachments
A test case that should succeed if merging complex type overlapping XmlPath annotations worked (1.70 KB, application/java-archive)
2012-01-02 19:46 EST, Rob McAuliffe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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