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.
[dev-200508171800, JDK 1.5.0_04] Changing method parameters is treated as error. Steps to reproduce: 1) Have folowing two classes: public class NewClass { public NewClass() { } public void setIt(String s) { } } --- public class NewClass2 { public NewClass2() { NewClass nc = new NewClass(); nc.setIt("asdf"); } } 2) Change method parameters of setIt() method in NewClass using refactoring - add boolean param 'b' with default value 'true'. 3) Finish refactoring 4) Open NewClass2 and see attached screenshot of the wrong error Then when I try to proceed with the hint which offers me to create the "not existing" method I end up with broken class as shown on the second attached screenshot.
Created attachment 24019 [details] screenshot1
Created attachment 24020 [details] screenshot2
I could get rid of the error annotation only after rebuilding the project.
This issue is only reproducible when having those classes with no package declaration while source files are placed in some package, but it's not illegal.
MDR related.