Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316335 - Issues with XmlJavaTypeAdapter with ObjectFactory on Windows with JDK 1.5
Summary: Issues with XmlJavaTypeAdapter with ObjectFactory on Windows with JDK 1.5
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:
 
Reported: 2010-06-09 12:59 EDT by Matt MacIvor CLA
Modified: 2022-06-09 10:30 EDT (History)
0 users

See Also:


Attachments
Proposed Fix (1.30 KB, patch)
2010-06-09 13:02 EDT, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt MacIvor CLA 2010-06-09 12:59:48 EDT
Due to an issue with how EclipseLink determines the correct type for an element declared on an ObjectFactory createMethod that's annotated with an XmlJavaTypeAdapter annotation, the wrong type can occasionally be used. This will lead to an incorrect mapping being generated and incorrect behavior at runtime.

The code that processes the Adapter should be making use of the public method on CompilerHelper instead of doing the processing inline in AnnotationsProcessor
Comment 1 Matt MacIvor CLA 2010-06-09 13:02:34 EDT
Created attachment 171553 [details]
Proposed Fix
Comment 2 Matt MacIvor CLA 2010-06-09 13:35:20 EDT
Attached fix checked into trunk. Leaving bug open pending check in to 2.1 stream.
Comment 3 Matt MacIvor CLA 2010-06-24 14:44:21 EDT
Fix backported into 2.1 stream
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:16:35 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:30:43 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink