Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328822 - JAXB Externalized Metadata: Support for adapter on XmlValue required
Summary: JAXB Externalized Metadata: Support for adapter on XmlValue required
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 317962
  Show dependency tree
 
Reported: 2010-10-27 09:24 EDT by David McCann CLA
Modified: 2022-06-09 10:25 EDT (History)
0 users

See Also:


Attachments
Proposed fix (4.99 KB, patch)
2010-10-27 16:05 EDT, David McCann CLA
no flags Details | Diff
Supporting tests (15.73 KB, patch)
2010-10-27 16:05 EDT, 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 David McCann CLA 2010-10-27 09:24:40 EDT
According to the spec section 8.9.10.2, XmlJavaTypeAdapter may be used with
@XmlValue.
Comment 1 David McCann CLA 2010-10-27 16:05:15 EDT
Created attachment 181873 [details]
Proposed fix
Comment 2 David McCann CLA 2010-10-27 16:05:29 EDT
Created attachment 181874 [details]
Supporting tests
Comment 3 David McCann CLA 2010-10-27 16:15:28 EDT
Example use:
<?xml version="1.0" encoding="US-ASCII"?>
<xml-bindings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm">
  <java-types>
    <java-type name="org.example.MyValueClass">
      <xml-root-element name="boolean" />
      <java-attributes>
        <xml-value java-attribute="blah">
          <xml-java-type-adapter value="org.example.MyValueAdapter" />
        </xml-value>
      </java-attributes>
    </java-type>
  </java-types>
</xml-bindings>

Reviewed by:  matt.macivor@oracle.com
Tests:  all unit tests pass as expected; jaxb/externalizedmetadata/xmlvalue/XmlValueTestCases
revision: 8427
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:25:46 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink