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.
When a folder for which a FileObject exists is externally deleted and a file with the same name is created, MasterFS doesn't re-read the file type (although refresh is called on the parent FileObject). When a FileObject is obtained for the new file, its isData() returns false. I will attach a test.
Created attachment 21099 [details] Test which proves the described behavior
Keeping instance of FolderObj, deleteting it and recreating it as a plain file fails (The same for FileObj and recreating it as folder). Thanks for test.
*** Issue 90670 has been marked as a duplicate of this issue. ***
*** Issue 101570 has been marked as a duplicate of this issue. ***
Reassigning to new module owner jskrivanek.
*** Issue 87582 has been marked as a duplicate of this issue. ***
It is really broken. I want to do something with it for 6.9. If I fail, I'll downgrade again. Thanks for the test. Btw. refreshing the FileObject itself directly does not help either, which I consider really bad.
Created attachment 98061 [details] Almost there, just one existing test fails
core-main#ec02f8e817b8
Integrated into 'main-golden', will be available in build *201004280200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log: