Bug 490422 - HistoryPolicy: method setEndFieldType wrong signature
Summary: HistoryPolicy: method setEndFieldType wrong signature
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-25 05:01 EDT by Peter Hansson CLA
Modified: 2022-06-09 10:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Hansson CLA 2016-03-25 05:01:08 EDT
The setEndFieldType method looks like this in the source code:

 public void setEndFieldType(String fieldName, Class type) {
        for (DatabaseField existing : endFields) {
            existing.setType(type);
        }
 }


There are two problems with this:

- The parameter fieldName is unused
- It is not similar to its sibling method, setStartFieldType


Solution: Remove parameter 'fieldName' from the signature.
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:05:43 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink