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.
Product Version = NetBeans IDE Dev (Build 200501181900) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.5.0_02-ea; Java HotSpot(TM) Client VM 1.5.0_02-ea-b02; Sun Microsystems Inc. Java Home = c:\Program Files\Java\jdk1.5.0_02\jre --------------------------------------------- In source packages i have packages abc.def.ghi.jkl with appropriate classes (see http://beetle.czech/modules/refactoring/ promotion_d/testspecs/data/classes.zip) and when i try rename /src/abc in files view to /src/aaa command goes smoothly through but refactoring->undo throws exception and package remains /src/aaa.
Created attachment 19781 [details] thrown exception
Now i noticed it doesn't work neither for files :-( (i'm trying to do it in Files view) try rename a.java -> x.java, do refactoring, and refactoring -> undo all changes in x.java will be undone but file remains x.java (instead of a.java)
Well, two issues described here: 1. Undo does not rename file back - this is known issue, which is described in UI spec. http://projects.netbeans.org/nonav/buildsys/j2se-project-ui-spec.html#Packages_and_Folders. This is duplicate of issue 48676. 2. InvalidObjectException - this bug is valid and needs to be fixed.
Fixed. Checking in src/org/netbeans/modules/javacore/scanning/JavaUpdater.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/JavaUpdater.java,v <-- JavaUpdater.java new revision: 1.19; previous revision: 1.18 done
*** Issue 52911 has been marked as a duplicate of this issue. ***
Verified with build 200504031800.