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: NetBeans IDE Dev (Build 201204030400) 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: 1.) Moved JFrame.java form from one package to another in a Automatic Internationalization project. 2) Moved JFrame.java form back to original package. This AssertionError was thrown. Stacktrace: java.lang.AssertionError: FileObject for C:\Users\Mark\Documents\NetBeansProjects\Internationalization\src\internationalization\NewJFrame.form not found. at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.handleMoveCopy(BaseFileObj.java:350) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.move(BaseFileObj.java:301) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.move(BaseFileObj.java:277) at org.openide.loaders.FileEntry.move(FileEntry.java:116) at org.openide.loaders.MultiDataObject.handleMove(MultiDataObject.java:736) at org.openide.loaders.DataObject$2Op.run(DataObject.java:744)
Created attachment 117764 [details] stacktrace
Created attachment 117768 [details] stacktrace 1.) Opened "Internationalization" project in NetBeans. 2.) Drag and Dropped NewJFrame.java into "newpackage" package. This AssertionError was thrown.
Created attachment 117769 [details] Project that exhibits the problem. 1.) Open attached Project in NetBeans. 2.) Drag and drop NewJFrame.java file into "newpackage" package and choose to refactor. This AssertionError is thrown.
Created attachment 118610 [details] stacktrace Opened and edited file moved from one package to another and returned back...
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=174190
Created attachment 118839 [details] stacktrace 1) Created new package in Internationalized project. 2) Drag and droped JFrame file into new package. This occured.
Created attachment 119495 [details] stacktrace Refactoring code to another package.
*** Bug 210635 has been marked as a duplicate of this bug. ***
*** Bug 210656 has been marked as a duplicate of this bug. ***
All reports are coming from Windows. Vista or 7.
The log http://statistics.netbeans.org/exceptions/messageslog?id=576237 contains following message: WARNING [org.netbeans.modules.mercurial]: Cannot rename file C:\Users\Mark\Documents\NetBeansProjects\Internationalization-Dos_clone0\src\internationalization\NewJFrame.form to C:\Users\Mark\Documents\NetBeansProjects\Internationalization-Dos_clone0\src\newpackage\NewJFrame.form which seems to come from MercurialInterceptor.java. Please rather than printing messages throw IOException - that is the required contract in case you cannot create the target file...
fix: http://hg.netbeans.org/core-main/rev/e30b2024f0a2
Integrated into 'main-golden', will be available in build *201205240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e30b2024f0a2 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #210655 - Throw IOException! was: AssertionError: FileObject for C:\internationalization\NewJFrame.form not found.