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.
[refactoring build 040505; JDK 1.4.2_04] 1. Copied a simple Hello.java file in the Project View using Copy / Paste (into the same package). 2. Hello_1.java was created -- the name of the class hasn't changed in the source, but I'm not sure it's supposed to work that way at this point. 3. Tried to delete the pasted file using the 'Del' key in the Project View 4. NPE was thrown (attached), file wasn't deleted.
Created attachment 14738 [details] Exception stack trace
Additional info: Popup-menu | Delete worked. The only problem was that the mouse cursor changed to the busy state (arrow + hour glass) and stayed so, although there didn't seem to be any background operation running.
2. This is correct. You did a copy of file. No reason to change class name. It is strange, that the file was not deleted. I cannot reproduce it. Attached exception shows, that ElementInfo for JavaClass is null - this is a parser bug.
Root of the problem is, that some streams were not closed. Fixed. /cvs/java/javacore/src/org/netbeans/modules/javacore/parser/Attic/ASTProvider.java,v <-- ASTProvider.java new revision: 1.1.2.36.2.13; previous revision: 1.1.2.36.2.12 done Processing log script arguments... More commits to come... Checking in JavaUpdater.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/Attic/JavaUpdater.java,v <-- JavaUpdater.java new revision: 1.1.2.34.2.7; previous revision: 1.1.2.34.2.6 done
I'm not able to reproduce the problem with build from 20040511. Need to say that I was never able to reproduce it reliably, but I believe it's fixed now -- Verified.
Setting Target Milestone to promoD