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.
1. Create new project without main class (unmark Create Main Class checkbox during project creation) . 2. Create some schema in default package. 3. Cut schema file. 4. Paste into Test Packages and choose Refactor move. Result: an error dialog with OK button comes. Pressing OK doesn't dismiss it. Only killing IDE helps. In step 4, a folder in Source Packages can be used instead (create it after step 2). If a project with a main class is used, move refactoring simply doesn't work - nothing happens after step 4. This seems to be a showstopper for beta.
Confirmed on linux and Mac NetBeans IDE 6.0 Beta 1 (Build 200709100000).
I have found that using cut then Refactor->Move has the same problem no matter what the destination is.
There seems to be some issue with cut and Core refactoring. I debugged the code and seems like the Move refactoring works. After the move is done, the core refactoring again invokes Move refactoring with the original object which no longer exists. Will email to Becicka and check with him.
Fixed. The issue was that XMLRefactoringActionsProvider.canMove was not checking for valid nodes. Have added that check. Checking in XMLRefactoringActionsProvider.java; /cvs/xml/refactoring/src/org/netbeans/modules/xml/refactoring/XMLRefactoringActionsProvider.java,v <-- XMLRefactoringActionsProvider.java new revision: 1.8; previous revision: 1.7 done
Is it fixed in trunk only? Last beta build still contains the bug.
Fixed in trunk. We are not putting any code into beta1 branch.
Issue as described Fixed. VERIFIED in Build 200709180000.