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 56272 - Allow field encapsulation choice of get or set or both
Summary: Allow field encapsulation choice of get or set or both
Status: RESOLVED DUPLICATE of bug 55484
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-11 13:58 UTC by bairdinonit
Modified: 2007-04-03 18:02 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bairdinonit 2005-03-11 13:58:30 UTC
The refactoring module in NB 4.0 gives one the option of auto-generating get/set
methods and setting the access level of the fields and generated methods.  It
would be useful to allow the user to be able to select either only "gets" or
only "sets" when this is done.  Somewhat less useful, but also nice, would be
the option to selectively set all gets to one access level and all sets to another.

The last point may seem odd, but those who've used hibernate before may
appreciate this.  Hibernate uses reflection to create objects and having the set
methods private discourages changes to objects that are intended to be immutable
while still allowing hibernate to create these objects.
Comment 1 Jan Becicka 2005-05-20 10:13:27 UTC

*** This issue has been marked as a duplicate of 55484 ***