Community
Participate
Working Groups
Build ID: M20070212-1330 Steps To Reproduce: Take the following program: class A { public int i; } class B extends A { private int getI() { return 42; } } Using "Encapsulate Field" on A.i generates (without warning) a public getter method A.getI(), which triggers a compiler error, since B.getI() is private and cannot override it. Related problems occur if, for example, the return type of B.getI() is something other than "int". More information: This is similar to bug 209316.
*** This bug has been marked as a duplicate of bug 194996 ***