This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 165241 - Getters Setters generation doesn't follow naming convention
Summary: Getters Setters generation doesn't follow naming convention
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-15 09:09 UTC by ginkgo
Modified: 2009-05-20 03:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ginkgo 2009-05-15 09:09:24 UTC
The getter and setter generation doesn't follow naming convention. Attributes
like

private String eMail;

Should have a corresponding getter and setter like:
public String geteMail();
public void seteMail(String eMail);

This applies to all attributes where the second character of the attribute is a
capital and the first is not.
--------------------------------

I find the bug from the eclipse Bug 154823, and I test this bug exist on the netbeans also.
I report this, hope this can be fixed in the 6.7 final


regard
ginkgo
Comment 1 Max Sauer 2009-05-15 14:11:14 UTC
OK, fixed -- please verify.
---
http://hg.netbeans.org/jet-main/rev/0efc635d88c6
Comment 2 Quality Engineering 2009-05-16 08:57:45 UTC
Integrated into 'main-golden', will be available in build *200905160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0efc635d88c6
User: Max Sauer <msauer@netbeans.org>
Log: #165241: Getters Setters generation doesnt follow naming convention
Comment 3 ginkgo 2009-05-17 18:24:35 UTC
this bug is NOT fixed completely.

when I type "get" then use the Ctrl+space, the tip show is not correct,show "getEMail",should be "geteMail",
but the generated code is correct.

And then most important thing is that if you generate code from the menu [refactor] --> [encapsulate field], 
the dialog table "getter and setter" item display is not correct, and the code generated is not correct too.
I think this should fixed also. 

Can you check this again?


regard
ginkgo
Comment 4 Max Sauer 2009-05-18 15:51:19 UTC
Sorry for being inconsistent. Hopefully should be OK now.
---
http://hg.netbeans.org/jet-main/rev/4de0a21ef636
Comment 5 Quality Engineering 2009-05-19 07:24:51 UTC
Integrated into 'main-golden', will be available in build *200905190201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4de0a21ef636
User: Max Sauer <msauer@netbeans.org>
Log: #165241: Getters Setters generation doesnt follow naming convention
Comment 6 ginkgo 2009-05-20 03:25:45 UTC
OK, this bug is fixed completely.
Thanks for the quick fix.
you can close it now.