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.
[dev-200511271900, JDK 1.5.0_05] Package gets duplicated in Explorer Projects view after refactoring rename. Steps to reproduce: 1) Create Java Application project 2) Create one subpackage under package called SubPackage 3) Create some classes under SubPackage 4) Invoke Refactor Rename on SubPackage package and rename it to SubPackage1 (you want to rename it to subpackage but it's not possible in one step) 5) Invoke Refactor Rename on SubPackage1 and rename it to subpackage I ended up with two nodes with name SubPackage for the same package - see screenshot. Both package nodes contains the same java class nodes. Source files contain package declaration with 'subpackage'.
Created attachment 27345 [details] screenshot
Created attachment 27346 [details] part of ide log
This issue is very similar to issue #61221. I've attached part of ide log when running ide with -Dorg.openide.loaders=-5 as suggested in issue #61221.
PackageViewChildren seems to be the culprit - doesn't reflect case insensitivity of filesystem on WINDOWS => names2nodes seems to be in inconsistent state after capturing FileEvents. Definitely there exists two PackageViewChildren.PackageNode
Seems as fs issue.
/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/fileobjects/FolderObj.java,v new revision: 1.16; previous revision: 1.15 /cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java,v new revision: 1.6; previous revision: 1.5 /cvs/openide/masterfs/test/unit/src/org/netbeans/modules/masterfs/MasterFileObjectTestHid.java,v new revision: 1.27; previous revision: 1.26 /cvs/openide/masterfs/test/unit/src/org/netbeans/modules/masterfs/filebasedfs/fileobjects/FolderObjTest.java,v new revision: 1.9; previous revision: 1.8 /cvs/openide/masterfs/test/unit/src/org/netbeans/modules/masterfs/filebasedfs/naming/FileNameTest.java,v new revision: 1.3; previous revision: 1.2
Windows specific bug. Fixed on my side. But if I repeat your steps again and again then I can almost always make it throw any exception - related to refactoring - please evaluate.
Created attachment 27481 [details] exception
These exceptions are harmless
Checking in JMManager.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/JMManager.java,v <-- JMManager.java new revision: 1.126; previous revision: 1.125 done *** This issue has been marked as a duplicate of 69479 ***
It seems to me that this issue is not resolved correctly. It was originaly about duplicated package nodes in Explorer view when renaimg packages and finaly after some fixes it was duplicated to issue with some INFORMATIONAL exceptions? I cannot reproduce the initial problem any more.
Verified.
Reorganization of java component