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.
1) Create new module 2) Expand <this layer in context> 3) Run "Action Wizard" (just use default values, just fill up "Display Name") 4) Go to <this layer in context> --> Menu Bar --> File 5) Select some separator, press Ctrl+C 6) Select <this layer in context> --> Menu Bar --> File, press Ctrl+V Take a look into generated content in layer.xml. Presuambly(?) unneeded "url" attribute for generated Separator_xxx.instance. And org.yourorghere.moduleXX.Separator_xxx empty file is created. Not sure if it concerns only Separator instances.
Yeah, file operations on instances don't really work: it is trying to actually copy the byte[] contents and Map<String,Object> attributes, which cannot work reliably. May be able to implement AbstractFileSystem.Transfer to handle this scenario properly.
More over one would probably tends to delete the file created on a disk. Which is OK on the first sight - no error reported so far. But after deploying a module there will be a broken reference. So e.g. menu item will not work.
Don't think it's fixable. No apparent way to override copy/move behavior because of weirdness in MultiFileSystem.
Created attachment 28821 [details] Working patch; unit test is OK but live behavior not due to MFS wrapping
x
*** This issue has been marked as a duplicate of 72541 ***
can be. verified duplicate