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.
Build ID: 200609161800 (Netbeans 6.0 M3) Steps To Reproduce: Encapsulate field f on the following: public class A { int f; void m(){ (f)++; } } Yields the following refactored code: public class A { private int f; void m(){ (getF())++; } public int getF() { return f; } public void setF(int f) { this.f = f; } } Note that "(getF())++;" is a compilation error. Bug also appears for prefix operators.
Encapsulate field refactoring is not available in current builds. It has to be brought back with fixes.
Already implemented. Please try the latest daily build.