Bug 457169 - Issue with @XmlVariableNode
Summary: Issue with @XmlVariableNode
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL: http://stackoverflow.com/questions/27...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-09 16:09 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:03 EDT (History)
1 user (show)

See Also:


Attachments
Code Demonstrating the Issue (2.84 KB, application/x-zip-compressed)
2015-01-09 16:10 EST, Blaise Doughan CLA
no flags Details
Test case @XmlPath(“.”) conflicts with @XmlAdapter (2.54 KB, application/octet-stream)
2015-01-09 17:48 EST, Nassim MOUALEK CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Blaise Doughan CLA 2015-01-09 16:09:15 EST
The following question on Stack Overflow raises an issue with @XmlVariable node.

 - http://stackoverflow.com/questions/27765087/xmlpath-conflicts-with-xmladapter

I haven't isolated the cause, but see the attached code that reproduces the issue.
Comment 1 Blaise Doughan CLA 2015-01-09 16:10:48 EST
Created attachment 249832 [details]
Code Demonstrating the Issue
Comment 2 Nassim MOUALEK CLA 2015-01-09 17:48:00 EST
Created attachment 249836 [details]
Test case @XmlPath(“.”) conflicts with @XmlAdapter
Comment 3 Nassim MOUALEK CLA 2015-01-09 17:51:06 EST
As montioned in Stackoverflow thread the problem is related to 
org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl 
public XPathNode getNonAttributeXPathNode(String namespaceURI, String localName, String qName, Attributes attributes) {
...
Line 1279
       if(null == resultNode && null == nonPredicateNode) {
          // ANY MAPPING
          resultNode = xPathNode.getAnyNode();// by default it return the EventAdapter returing a null at this place fix the problem, but i dont know if its the best solution
       }
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:03:22 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink