| Summary: | [encapsulate field] "Conventions for variable names" not respected when creating getter/setter | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | arne anka <eclipse-bugs> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, Olivier_Thomann |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
Using HEAD, I get:
public void setMyFoo(int aMyFoo) {
myFoo = aMyFoo;
}
via Quick Fix or context menu -> Source -> Generate Setters and Getters? the latter apparently respects the settings, Quick Fix does not. Move to JDT/UI *** This bug has been marked as a duplicate of bug 252779 *** |
Build Identifier: 20100917-0705 in Preferences->Java->Code Style->Conventions for variable names i defined Parameters to start with "a". in my class i got a field int myFoo and let eclipse create getter and setter (via Quick Fix). the generated setter looks like public void setFoo(int foo){ myFoo = foo; } but, from the configuration in Preferences->Java->Code Style->Conventions for variable names i expect it to look like public void setFoo(int aFoo){ myFoo = aFoo; } Reproducible: Always Steps to Reproduce: 1. configure a Parameter-prefix in Preferences->Java->Code Style->Conventions for variable names 2. let eclipse create a setter 3. watch the configured prefix being ignored