Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354646 - JAXB GetMethod should be checked for zero input arguments, and non-void return type
Summary: JAXB GetMethod should be checked for zero input arguments, and non-void retur...
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: Denise Smith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 317963
Blocks:
  Show dependency tree
 
Reported: 2011-08-12 13:05 EDT by Denise Smith CLA
Modified: 2022-06-09 10:09 EDT (History)
0 users

See Also:


Attachments
Fix and test update (2.32 KB, patch)
2011-08-12 13:08 EDT, 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 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