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.
Created attachment 145261 [details] Showing error in classB What I did: Open rename.ClassB.java, put caret into method name a.meth|od (where '|' is a position of carret) By Ctrl+R invoke Rename dialog Type new name e.g "renamedMethod" Press Preview and inspect changes Press "Refresh the refactoring data" (green button with cycling arrows) Type new name e.g "renamedMethod1" and press Refactor Then I went to ClassA to see the changed method, and then I pressed Undo (still in ClassA). Then I saw that ClassB got and error marker (both in the editor and the projects view). See attached screen dump. The errors went away once I clicked to see the contents of the editor with classA, but it should newer have been there to start with.
The same (failed) behavior is also provokable from the Constants II test: Open rename.ClassB.java, put caret into constant name System.out.println("ID of a is: " + a.i|d); (where '|' is a position of caret) By Ctrl+R invoke Rename dialog Type new name e.g "myId" Press Preview Press Do Refactoring Go to ClassA, and see that ClassB has error badge (both editor and in projects view). see screen dump
Created attachment 145262 [details] from constants II
For the constants II test you also need to press undo (I forgot to say that)
You have to save the actual file to get rid of error badges, or invoke undo from project view *** This bug has been marked as a duplicate of bug 241466 ***