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

Bug 368284

Summary: AnnotationsProcessor should ignore synthetic methods
Product: z_Archived Reporter: Denise Smith <denise.mahar>
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 7   
Whiteboard:
Attachments:
Description Flags
2.3 proposed changes
none
proposed trunk patch none

Description Denise Smith CLA 2012-01-10 13:18:48 EST
cls.getDeclaredMethods returns all methods including synthetic methods which are generated by the compiler.   Those synthetic methods should be ignored by JAXB
Comment 1 Denise Smith CLA 2012-01-10 13:50:44 EST
If these synthetic methods are not ignored running the JAXB tests (for example org.eclipse.persistence.testing.jaxb.typemappinginfo.MapStringIntegerTestCase ) will fail in jdk 1.7.0_02 as the cls.getDeclaredMethods returns the methods in a different order the synthetic methods will be found first and errors will occur such as marshalling the "item" element on our generatedWrapper class when it is marked transient.
Comment 2 Denise Smith CLA 2012-01-10 14:03:37 EST
Created attachment 209279 [details]
2.3 proposed changes
Comment 3 Denise Smith CLA 2012-01-10 14:03:56 EST
Created attachment 209280 [details]
proposed trunk patch
Comment 4 Denise Smith CLA 2012-01-10 15:24:44 EST
Fix checked in to 2.3.3 and 2.4
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:16:44 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:29:50 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink