Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327593 - oxm XML file does not support the use of xml-java-type-adapter with xml-element-ref(s)
Summary: oxm XML file does not support the use of xml-java-type-adapter with xml-eleme...
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: David McCann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 332569
Blocks:
  Show dependency tree
 
Reported: 2010-10-12 13:33 EDT by Paul Fullbright CLA
Modified: 2022-06-09 10:09 EDT (History)
3 users (show)

See Also:


Attachments
Proposed fix for XmlElementRef (5.59 KB, patch)
2010-11-01 08:30 EDT, David McCann CLA
no flags Details | Diff
Supporting test cases for XmlElementRef (19.16 KB, patch)
2010-11-01 08:30 EDT, David McCann CLA
no flags Details | Diff
Proposed fix (8.83 KB, patch)
2010-12-23 12:41 EST, David McCann CLA
no flags Details | Diff
Supporting tests (22.43 KB, patch)
2010-12-23 12:41 EST, 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:33:11 EDT
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-element-ref(s) elements have no xml-java-type-adapter elements as the others do.
Comment 1 Paul Fullbright CLA 2010-10-12 13:55:28 EDT
According to the spec section 8.9.8.2, it may also be used with @XmlAnyAttribute.
Comment 2 Paul Fullbright CLA 2010-10-12 13:59:15 EDT
Also (8.9.10.2) @XmlValue
Comment 3 David McCann CLA 2010-10-27 09:30:51 EDT
Will open separate bugs to track adapter use with XmlValue and XmlAnyAttribute.

XmlValue:  https://bugs.eclipse.org/bugs/show_bug.cgi?id=328822
XmlAnyAttribute:  https://bugs.eclipse.org/bugs/show_bug.cgi?id=328823
Comment 4 David McCann CLA 2010-11-01 08:30:24 EDT
Created attachment 182135 [details]
Proposed fix for XmlElementRef
Comment 5 David McCann CLA 2010-11-01 08:30:44 EDT
Created attachment 182136 [details]
Supporting test cases for XmlElementRef
Comment 6 David McCann CLA 2010-12-22 10:52:07 EST
Reviewed by:  matt.macivor@oracle.com
Tests:  all unit tests pass as expected;  jaxb/externalizedmetadata/xmladapter/XmlAdapterTestCases; jaxb/xmladapter/hexbinary/XmlAdapterHexBinaryTestCases
Revision: 8744
Comment 7 David McCann CLA 2010-12-22 10:54:40 EST
Updated/closed the wrong bug.  Reopening.
Comment 8 David McCann CLA 2010-12-23 12:41:08 EST
Created attachment 185780 [details]
Proposed fix
Comment 9 David McCann CLA 2010-12-23 12:41:22 EST
Created attachment 185781 [details]
Supporting tests
Comment 10 David McCann CLA 2010-12-23 12:46:13 EST
Reviewed by:  matt.macivor@oracle.com
Tests:  all unit tests pass as expected; jaxb/externalizedmetadata/xmladapter/XmlAdapterTestCases
Revision:  8749
Comment 11 Eclipse Webmaster CLA 2022-06-09 10:04:52 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 12 Eclipse Webmaster CLA 2022-06-09 10:09:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink