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.

Bug 211755 - org.openide.filesystems.FileStateInvalidException: C:\Users\Mark\Documents\NetBeansProjects\JUnitSanity\src\newpackage\aa\cc@97eb5c91:c18cd8[invalid]
Summary: org.openide.filesystems.FileStateInvalidException: C:\Users\Mark\Documents\Ne...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-26 04:48 UTC by MackSix
Modified: 2012-05-01 09:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 187385


Attachments
stacktrace (4.66 KB, text/plain)
2012-04-26 04:48 UTC, MackSix
Details
Project to use for reproduction. (83.90 KB, application/zip)
2012-04-26 04:54 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-04-26 04:48:00 UTC
This bug was originally marked as duplicate of bug 187268, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201204250400)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows Vista

User Comments:
MackSix: Undo of Rename after Undo of package move of same name.




Stacktrace: 
org.openide.filesystems.FileStateInvalidException: C:\Users\Mark\Documents\NetBeansProjects\JUnitSanity\src\newpackage\aa\cc@97eb5c91:c18cd8[invalid]
   at org.openide.loaders.DataObject.find(DataObject.java:521)
   at org.openide.loaders.DataFolder.findFolder(DataFolder.java:540)
   at org.netbeans.modules.refactoring.java.plugins.PackageRename$PackageRenamePlugin$RenameNonRecursiveFolder.setName(PackageRename.java:249)
   at org.netbeans.modules.refactoring.java.plugins.PackageRename$PackageRenamePlugin$RenameNonRecursiveFolder$1.run(PackageRename.java:189)
   at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
   at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:607)
Comment 1 MackSix 2012-04-26 04:48:06 UTC
Created attachment 118783 [details]
stacktrace
Comment 2 MackSix 2012-04-26 04:54:23 UTC
Created attachment 118784 [details]
Project to use for reproduction.

1) Open Attached Project.
2) View Project Window as "Reduced Tree".
3) Under n"ewpackage" rename bb.cc to aa.cc.
4) Drag and drop the new aa.cc under "mypackage" and refactor.
5) Undo the move and then Undo the rename.

This IllegalArgumentException occurs.


Product Version: NetBeans IDE Dev (Build 201204250400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 3 MackSix 2012-04-26 04:56:50 UTC
Correction, I meant this FileStateInvalidException occurs.
Comment 4 Jan Becicka 2012-04-26 06:39:18 UTC
reproducible.
Comment 5 Jan Becicka 2012-04-26 07:10:20 UTC
Changeset: 38a85b335ce3
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2012-04-26 08:55
Message:   
Issue #211755 - org.openide.filesystems.FileStateInvalidException: C:\Users\Mark\Documents\NetBeansProjects\JUnitSanity\src\newpackage\aa\cc@97eb5c91:c18cd8[invalid]
Comment 6 Quality Engineering 2012-05-01 09:52:54 UTC
Integrated into 'main-golden', will be available in build *201205010400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/38a85b335ce3
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #211755 - org.openide.filesystems.FileStateInvalidException: C:\Users\Mark\Documents\NetBeansProjects\JUnitSanity\src\newpackage\aa\cc@97eb5c91:c18cd8[invalid]