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

Bug 327591

Summary: oxm XML file does not support the use of xml-mixed with xml-element-ref(s)
Product: z_Archived Reporter: Paul Fullbright <paul.fullbright>
Component: EclipselinkAssignee: David McCann <david.mccann>
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:28:36 EDT
According to the javadocs for @XmlMixed, it may be used with @XmlElementRef(s) (as well as with @XmlAnyElement).

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

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

This patch also resolves:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=328285
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327590
Comment 2 David McCann CLA 2010-10-25 14:43:16 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:03:33 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink