Bug 3915 - generate getter/setter too smart on names (1GF5WW1)
Summary: generate getter/setter too smart on names (1GF5WW1)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P4 minor (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 23:02 EDT by Erich Gamma CLA
Modified: 2001-11-27 10:41 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 Erich Gamma CLA 2001-10-10 23:02:58 EDT
AK (6/11/01 5:21:41 PM)
	generete getters/setters uses out naming policy that all field names start with f
	if you create a getter for a field fFred
	the javadoc comments says "Gets the fred"
	how does it know that the leading f does not mean anything and can be ommited in the comment?
	it makes the same assumption for all one-letter lowercase prefixes

	it should not try to be too smart and just say "Gets fFred." (needs a period at the end)

	in other companies the leading f or anything might have some totally different meaning and generating 
	a comment without it will be very inappropriate

NOTES:
EG (7/12/01 10:57:38 AM)
	make it a preference, low prio
Comment 1 Martin Aeschlimann CLA 2001-10-16 11:13:58 EDT
moved to 'active'
Comment 2 DJ Houghton CLA 2001-10-24 07:24:43 EDT
PRODUCT VERSION:
	122

Comment 3 Martin Aeschlimann CLA 2001-11-27 10:41:54 EST
added preference page > 11122