Bug 41542

Summary: [quick fix] create method should detect when method is a getter or setter
Product: [Eclipse Project] JDT Reporter: David Corbin <dcorbin>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: alex.blewitt, b.muskalla, martinae, michael.wiles, mistria, psmith, thorbjoern
Version: 3.0Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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. ***