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

Bug 354646

Summary: JAXB GetMethod should be checked for zero input arguments, and non-void return type
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Denise Smith <denise.mahar>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 317963    
Bug Blocks:    
Attachments:
Description Flags
Fix and test update none

Description Denise Smith CLA 2011-08-12 13:05:21 EDT
When we process get method in getPropertyPropertiesForClass in
AnnotationsProcessor, we should only process ones that have exactly one input
parameter, and a non-void return type.

More than likely the change will be required to the following line of code:

if ((next.getName().startsWith("get") && next.getName().length() > 3) ||
(next.getName().startsWith("is") && next.getName().length() > 2)) {
Comment 1 Denise Smith CLA 2011-08-12 13:05:53 EDT
Backport of bug 317963
Comment 2 Denise Smith CLA 2011-08-12 13:08:41 EDT
Created attachment 201415 [details]
Fix and test update
Comment 3 Denise Smith CLA 2011-09-13 11:23:40 EDT
Fixed as per the patch.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:09:54 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink