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

Bug 366460

Summary: Dynamic JAXB : XmlJavaTypeAdapter fails if type is Dynamic
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: Rick Barkhouse <rick.barkhouse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch
none
Additional Patch none

Description Rick Barkhouse CLA 2011-12-12 16:34:54 EST
Consider the following element declaration:

<xml-element java-attribute="address" type="mynamespace.Address">
    <xml-java-type-adapter value="org.eclipse.persistence.testing.jaxb.dynamic.util.LinkAdapterString"
        type="mynamespace.Address" value-type="java.lang.String"/>
</xml-element>

In a Dynamic JAXB context, where Address is a dynamic type, context creation will fail with a NoClassDefFound error for Address.
Comment 1 Rick Barkhouse CLA 2011-12-13 12:10:21 EST
Created attachment 208323 [details]
Patch
Comment 2 Rick Barkhouse CLA 2011-12-13 15:38:59 EST
Fixed in trunk, reviewed by bdoughan.
Comment 3 Rick Barkhouse CLA 2011-12-14 12:44:50 EST
Created attachment 208392 [details]
Additional Patch
Comment 4 Rick Barkhouse CLA 2011-12-14 12:45:08 EST
Additional patch required due to JAXB TCK failures.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:05:28 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:07:44 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink