Community
Participate
Working Groups
Build Identifier: 20090920-1017 Renaming a method leads to reduce the visibility of an inherited method, which is not allowed in Java. Reproducible: Always Steps to Reproduce: 1. Create the classes public class A { public void k() {} } public class B extends A{ private void n() {} } 2. Apply the rename method refactoring to n renaming it to k public class A { public void k() {} } public class B extends A{ private void k() {} } 3. The resulting code doesn't compile. Error: cannot reduce the visibility of inherited method.
*** This bug has been marked as a duplicate of bug 233712 ***