Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366460 - Dynamic JAXB : XmlJavaTypeAdapter fails if type is Dynamic
Summary: Dynamic JAXB : XmlJavaTypeAdapter fails if type is Dynamic
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: Rick Barkhouse CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-12 16:34 EST by Rick Barkhouse CLA
Modified: 2022-06-09 10:07 EDT (History)
0 users

See Also:


Attachments
Patch (12.84 KB, patch)
2011-12-13 12:10 EST, Rick Barkhouse CLA
no flags Details | Diff
Additional Patch (943 bytes, patch)
2011-12-14 12:44 EST, 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 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