Bug 41542 - [quick fix] create method should detect when method is a getter or setter
Summary: [quick fix] create method should detect when method is a getter or setter
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 52025 97194 109365 116409 139233 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-14 09:13 EDT by David Corbin CLA
Modified: 2018-03-26 08:37 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Corbin CLA 2003-08-14 09:13:59 EDT
When I use the quickfix "createMethod", AND the method matches the signature of
a getter or setter, AND the class in question has a member field that
corresponds with the method name, the generated code should act more like
Source-Create getters/setters.

1) The argument should be named after the field (setter)
2) The return value should match the field's type (getter) or void (setter)
3) The body to should set or get the variable should be auto-generated correctly
Comment 1 Martin Aeschlimann CLA 2004-02-18 05:06:27 EST
*** Bug 52025 has been marked as a duplicate of this bug. ***
Comment 2 Martin Aeschlimann CLA 2005-09-14 03:51:51 EDT
*** Bug 109365 has been marked as a duplicate of this bug. ***
Comment 3 Martin Aeschlimann CLA 2005-11-16 18:29:09 EST
*** Bug 116409 has been marked as a duplicate of this bug. ***
Comment 4 Martin Aeschlimann CLA 2006-04-29 19:17:03 EDT
*** Bug 139233 has been marked as a duplicate of this bug. ***
Comment 5 Alex Blewitt CLA 2006-04-30 16:58:07 EDT
Also applies to setters as well ...
Comment 6 Martin Aeschlimann CLA 2007-03-22 06:26:40 EDT
*** Bug 97194 has been marked as a duplicate of this bug. ***