| Summary: | JAXB GetMethod should be checked for zero input arguments, and non-void return type | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Denise Smith <denise.mahar> | ||||
| Component: | Eclipselink | Assignee: | 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: |
|
||||||
Backport of bug 317963 Created attachment 201415 [details]
Fix and test update
Fixed as per the patch. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
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)) {