Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368284 - AnnotationsProcessor should ignore synthetic methods
Summary: AnnotationsProcessor should ignore synthetic methods
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 13:18 EST by Denise Smith CLA
Modified: 2022-06-09 10:29 EDT (History)
0 users

See Also:


Attachments
2.3 proposed changes (3.51 KB, patch)
2012-01-10 14:03 EST, Denise Smith CLA
no flags Details | Diff
proposed trunk patch (3.47 KB, patch)
2012-01-10 14:03 EST, Denise Smith CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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