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

Bug 316335

Summary: Issues with XmlJavaTypeAdapter with ObjectFactory on Windows with JDK 1.5
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Fix none

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