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.
Build 200406061800 Steps: - start IDE with a clear userdir - create a new J2SE application based on attached sources - invoke Find Usages for abc.B class => result should be 1 occurence - invoke Refactoring->Move Class and move abc.B class to the 'abc.def' package - invoke Find Usages for abc.def.B class => I would say that the result should be 1 occurence, but 0 occurences is displayed *** - invoke Refactoring->Undo [Move Class] and the class is moved to the initial place - invoke Find Usages for abc.B class again => The result should be 1 as in the initial state, but 0 occurences is displayed ***
Created attachment 15530 [details] classes.zip
Other observations: - It is not possible to perform previous steps again, because 'Fatal Error' is appeared when Move Class dialog is confirmed. - abc.B node has 'Invalid package declaration' hint (source code looks well - package abc;)
Created attachment 15532 [details] Exception
When I restart IDE, I get an attached exception and whole IDE is a grey area (except menu and toolbars).
I see different behavior: - start IDE with a clear userdir - create a new J2SE application based on attached sources - invoke Find Usages for abc.B class => result should be 1 occurence - invoke Refactoring->Move Class and move abc.B class to the 'abc.def' package - invoke Find Usages for abc.def.B class => result is: 2 occurences (added import statement + original "extends B") which is OK - invoke Refactoring->Undo [Move Class] and the class is moved to the initial place - invoke Find Usages for abc.B class again => The result should be 1 as in the initial state, but 0 occurences is displayed *** - STILL A BUG If I do it by using Refactoring->Move, rather than Undo, it works (although it leaves "import abc.B", that's not necessary).
Moved to new subcomponent java/javacore.
Checking in RepositoryUpdater.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java,v <-- RepositoryUpdater.java new revision: 1.9; previous revision: 1.8 done Processing log script arguments... More commits to come... Checking in internalapi/UndoManager.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/internalapi/UndoManager.java,v <-- UndoManager.java new revision: 1.2; previous revision: 1.1 done
Please, fix this also in Qbuild branch QBE200406230100. Thanks.
Fixed in QBE200406230100 /cvs/java/javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java,v <-- RepositoryUpdater.java new revision: 1.8.2.1; previous revision: 1.8 done Processing log script arguments... More commits to come... Checking in internalapi/UndoManager.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/internalapi/UndoManager.java,v <-- UndoManager.java new revision: 1.1.6.1; previous revision: 1.1 done
Seems to be fixes in build QBE200406242325, at least for described testcases - verified
Reorganization of java component