Bug 8192 - Self encapsulate field: No setter created
Summary: Self encapsulate field: No setter created
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 9452
Blocks:
  Show dependency tree
 
Reported: 2002-01-23 11:55 EST by Martin Aeschlimann CLA
Modified: 2002-02-13 12:52 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2002-01-23 11:55:02 EST
1. Open  junit.framework.TestCase
2. Apply 'Self encapsulate field' on fName
3. It only creates the getter, but no setter.
Comment 1 Dirk Baeumer CLA 2002-02-13 12:52:42 EST
This is on purpose since the field 'fName' is final and therefore you can't 
assign a value to it. Generating a setter would result in a compiler error.

Closing