Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327590 - oxm XML file does not support the use of xml-any-element with xml-element-ref(s)
Summary: oxm XML file does not support the use of xml-any-element with xml-element-ref(s)
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 13:25 EDT by Paul Fullbright CLA
Modified: 2022-06-09 10:32 EDT (History)
2 users (show)

See Also:


Attachments
Contains fix and supporting test cases (162.71 KB, patch)
2010-10-21 11:20 EDT, David McCann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Fullbright CLA 2010-10-12 13:25:14 EDT
According to the javadocs for @XmlAnyElement, it may be used with @XmlElementRef(s).

http://download.oracle.com/javase/6/docs/api/javax/xml/bind/annotation/XmlAnyElement.html

The oxm XML metadata does not support this cross-use, as xml-any-element has no xml-element-ref elements and xml-element-ref(s) has no xml-any-element tag.
Comment 1 David McCann CLA 2010-10-21 11:20:45 EDT
Created attachment 181412 [details]
Contains fix and supporting test cases

This patch also resolves:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=327591
https://bugs.eclipse.org/bugs/show_bug.cgi?id=328285
Comment 2 David McCann CLA 2010-10-25 14:43:25 EDT
Reviewed by:  matt.macivor@oracle.com; blaise.doughan@oracle.com
Tests: all unit tests pass as expected; jaxb/externalizedmetadata/xmlanyelement/XmlAnyElementTestCases; jaxb/externalizedmetadata/xmlelementrefs/XmlElementRefsTestCases
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:32:52 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink