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 "theField" on the following: public class A { public String theField; public static void main( String[] args){ B b=new B(); b.setTheField("abcd"); } } class B extends A { public void setTheField( String theField){ this.theField=theField; } } Yields the following refactored code: public class A { private String theField; public static void main( String[] args){ B b=new B(); b.setTheField("abcd"); } public String getTheField() { return theField; } public void setTheField(String theField) { this.theField = theField; } } class B extends A { public void setTheField( String theField){ this.setTheField(theField); } } Running A before refactoring: "" Running A after refactoring : Exception in thread "main" java.lang.StackOverflowError at p1.B.setTheField(A.java:22)
Valid for 5.5. Encapsulate fields not implemented in M10. Planned for beta1. Need to be reevaluated when implemented. Should be resolved for 6.0
Similar problem to that reported in issue 108489. *** This issue has been marked as a duplicate of 108489 ***