Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354166 - oxm XML file does not support the use of xml-java-type-adapter with xml-elements
Summary: oxm XML file does not support the use of xml-java-type-adapter with xml-elements
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Rick Barkhouse CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 390717 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-08 12:39 EDT by Paul Fullbright CLA
Modified: 2022-06-09 10:08 EDT (History)
5 users (show)

See Also:


Attachments
Patch - test fixes - 2.5 (10.98 KB, patch)
2012-09-28 14:32 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - code fixes - 2.5 (5.00 KB, patch)
2012-09-28 14:32 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - revert oxm schema - 2.4 (1009 bytes, patch)
2012-10-01 10:20 EDT, Rick Barkhouse 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 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