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

Bug 354166

Summary: oxm XML file does not support the use of xml-java-type-adapter with xml-elements
Product: z_Archived Reporter: Paul Fullbright <paul.fullbright>
Component: EclipselinkAssignee: Rick Barkhouse <rick.barkhouse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: blaise.doughan, david.twelves, eclipselink.oxm-inbox, rick.barkhouse, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch - test fixes - 2.5
none
Patch - code fixes - 2.5
none
Patch - revert oxm schema - 2.4 none

Description Paul Fullbright CLA 2011-08-08 12:39:23 EDT
+++ This bug was initially created as a clone of Bug #327593 +++

According to the javadocs for @XmlJavaTypeAdapter, it may be used with @XmlElementRef(s) (as well as with @XmlAttribute, @XmlElement(s), and @XmlAnyElement).

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

The oxm XML metadata does not support this use, as xml-elements elements have no xml-java-type-adapter elements as the others do.

(Not sure how I missed this when entering the previous bug with xml-element-ref(s).  I could have sworn I checked every attribute type.)
Comment 1 Paul Fullbright CLA 2011-08-08 12:40:26 EDT
(removed dependencies)
Comment 2 Paul Fullbright CLA 2012-09-28 13:29:31 EDT
*** Bug 390717 has been marked as a duplicate of this bug. ***
Comment 3 Rick Barkhouse CLA 2012-09-28 14:32:14 EDT
Created attachment 221672 [details]
Patch - test fixes - 2.5
Comment 4 Rick Barkhouse CLA 2012-09-28 14:32:36 EDT
Created attachment 221673 [details]
Patch - code fixes - 2.5
Comment 5 Rick Barkhouse CLA 2012-09-28 15:13:20 EDT
Fixed in 2.4 and 2.5
Comment 6 Rick Barkhouse CLA 2012-10-01 10:17:14 EDT
2.4.1 schema should not be changed.
Comment 7 Rick Barkhouse CLA 2012-10-01 10:20:07 EDT
Created attachment 221718 [details]
Patch - revert oxm schema - 2.4
Comment 8 Rick Barkhouse CLA 2012-10-01 10:41:52 EDT
Fixed; reverted oxm schema to not include adapters in xml-elements.  Adapters can still be used in OXM files but they not part of the schema.
Comment 9 Eclipse Webmaster CLA 2022-06-09 10:08:58 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink