This bug was originally marked as duplicate of bug 218766, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.
Build: NetBeans IDE 7.3 Beta (Build 201209272333)
VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows XP
lehel: GUI Builder sanity test: TS_73_FormAndSupportSanity
Test suite: Refactoring --> Renaming of a package --> doing the following steps:
1. Select 'refactortest' node in the Project Window and select 'Refactor>Rename' from its popup menu
2. Type "mydata" as a new package name and press 'Refactor'
After pressing enter at point 2. the error came.
Chiana: Was trying to rename a package that clashed with and existing class;
Mutex -> MutexUtil
Also, this is the second time I get this, the first time I accidentally killed the entire IDE with the screen dumper (it is too easy to do) the supplied screendump is from that run, to mee it looks identical...
ytn01: Created a Java application with default settings,
Added a JPanel form to it, & added some controls to panel,
Added a JFrame form to the project, & added some controls to it,
Dragged & added the JPanel to the JFrame,
Refactore Renamed the base package
marco76: I changed the name of a main package (package aa). src/aa/bb
I was testing the CVS (http://wiki.netbeans.org/TS_70_CVS) certification test 24. Refactoring.
mstarnacki: In Project Window I try to refactor from menu Refactor->Rename on package name.
javydreamercsw: Renaming a package in src/main/resources
sreimers: Trying to rename a package in a NetBeans Module Project
FrantaM: "Rename" package from "pck.sub1.sub2" to "pck"
MackSix: 1)Renamed project w/ renaming folder. 2) Renamed package.
dds.dhawal: Trying to refactor package name.
1. Right Click on package
2. Select refactor -> rename
3. Enter desired name and click Ok.
java.lang.ClassCastException: org.netbeans.modules.refactoring.api.RenameRefactoring cannot be cast to org.netbeans.modules.refactoring.api.MoveRefactoring
Created attachment 125114 [details]
*** This bug has been marked as a duplicate of bug 218766 ***