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

Bug 327590

Summary: oxm XML file does not support the use of xml-any-element with xml-element-ref(s)
Product: z_Archived Reporter: Paul Fullbright <paul.fullbright>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david.twelves, eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Contains fix and supporting test cases none

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