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.
I tested this on following steps: 1. Have mounted some local filesystem 2. mount editor.jar (tested on editor.jar from build 200106190100) 3. create new package on local filesystem ("jar" in my case) 4. Open the jar, select both nodes (META-INF, org) 5. Perform copy on selected nodes 6. Paste the into newly created package on local filesystem Attached excpetion is thrown and not all files are copied. Build pilsen 010618_2.
Created attachment 1639 [details] Exception thrown.
I forgot, some files are not copied and in output window is following text: Warning: Object NbHTMLSettingsInitializer cannot be copied. Warning: Object NbReaderProvider cannot be copied. Warning: Object JCExtension cannot be copied. Warning: Object JCLevelPanel cannot be copied. Warning: Object JCProgressPanel cannot be copied. Warning: Object JCStorage cannot be copied. Warning: Object JCUpdater cannot be copied. Warning: Object JavaIndentEngineBeanInfo cannot be copied. Warning: Object NbJavaCompletion cannot be copied. Warning: Object NbJavaFastImport cannot be copied. Warning: Object NbJavaFastOpen cannot be copied. Warning: Object NbJavaSettingsInitializer cannot be copied. Warning: Object NbJavaSyntaxSupport cannot be copied. Warning: Object AbbrevsEditor cannot be copied. Warning: Object AbbrevsEditorPanel cannot be copied. Warning: Object AllOptionsBeanInfo cannot be copied. Warning: Object BaseOptionsBeanInfo cannot be copied. Warning: Object BasePrintOptionsBeanInfo cannot be copied. Warning: Object ColoringArrayEditor cannot be copied. Warning: Object ColoringBeanBeanInfo cannot be copied. Warning: Object ColoringEditor cannot be copied. Warning: Object ContextOptionsListener cannot be copied. Warning: Object HTMLOptionsBeanInfo cannot be copied. Warning: Object HTMLPrintOptionsBeanInfo cannot be copied. Warning: Object JavaOptionsBeanInfo cannot be copied. Warning: Object JavaPrintOptionsBeanInfo cannot be copied. Warning: Object KeyBindingsEditor cannot be copied. Warning: Object KeyBindingsEditorPanel cannot be copied. Warning: Object MacrosEditor cannot be copied. Warning: Object MacrosEditorPanel cannot be copied. Warning: Object OptionSupport cannot be copied. Warning: Object PlainOptionsBeanInfo cannot be copied. Warning: Object PlainPrintOptionsBeanInfo cannot be copied. Warning: Object ScrollInsetsCustomEditor cannot be copied. Warning: Object ScrollInsetsEditor cannot be copied. Warning: Object UpgradeOptions cannot be copied. Warning: Object NbPlainSettingsInitializer cannot be copied. Warning: Object DORegistryListener cannot be copied. Warning: Object FormatterIndentEngine cannot be copied. Warning: Object FormatterIndentEngineBeanInfo cannot be copied. Warning: Object IndentEngineFormatter cannot be copied. Warning: Object NbDialogSupport cannot be copied. Warning: Object NbEditorDocument cannot be copied. Warning: Object NbEditorSettingsInitializer cannot be copied. Warning: Object NbEditorUI cannot be copied. Warning: Object NbEditorUtilities cannot be copied. Warning: Object NbLocalizer cannot be copied. Warning: Object RepositListener cannot be copied. Warning: Object SimpleIndentEngineBeanInfo cannot be copied. Warning: Object NbHTMLSettingsInitializer cannot be copied. Warning: Object NbReaderProvider cannot be copied. Warning: Object JCExtension cannot be copied. Warning: Object JCLevelPanel cannot be copied. Warning: Object JCProgressPanel cannot be copied. Warning: Object JCStorage cannot be copied. Warning: Object JCUpdater cannot be copied. Warning: Object JavaIndentEngineBeanInfo cannot be copied. Warning: Object NbJavaCompletion cannot be copied. Warning: Object NbJavaFastImport cannot be copied. Warning: Object NbJavaFastOpen cannot be copied. Warning: Object NbJavaSettingsInitializer cannot be copied. Warning: Object NbJavaSyntaxSupport cannot be copied. Warning: Object AbbrevsEditor cannot be copied. Warning: Object AbbrevsEditorPanel cannot be copied. Warning: Object AllOptionsBeanInfo cannot be copied. Warning: Object BaseOptionsBeanInfo cannot be copied. Warning: Object BasePrintOptionsBeanInfo cannot be copied. Warning: Object ColoringArrayEditor cannot be copied. Warning: Object ColoringBeanBeanInfo cannot be copied. Warning: Object ColoringEditor cannot be copied. Warning: Object ContextOptionsListener cannot be copied. Warning: Object HTMLOptionsBeanInfo cannot be copied. Warning: Object HTMLPrintOptionsBeanInfo cannot be copied. Warning: Object JavaOptionsBeanInfo cannot be copied. Warning: Object JavaPrintOptionsBeanInfo cannot be copied. Warning: Object KeyBindingsEditor cannot be copied. Warning: Object KeyBindingsEditorPanel cannot be copied. Warning: Object MacrosEditor cannot be copied. Warning: Object MacrosEditorPanel cannot be copied. Warning: Object OptionSupport cannot be copied. Warning: Object PlainOptionsBeanInfo cannot be copied. Warning: Object PlainPrintOptionsBeanInfo cannot be copied. Warning: Object ScrollInsetsCustomEditor cannot be copied. Warning: Object ScrollInsetsEditor cannot be copied. Warning: Object UpgradeOptions cannot be copied. Warning: Object NbPlainSettingsInitializer cannot be copied. Warning: Object DORegistryListener cannot be copied. Warning: Object FormatterIndentEngine cannot be copied. Warning: Object FormatterIndentEngineBeanInfo cannot be copied. Warning: Object IndentEngineFormatter cannot be copied. Warning: Object NbDialogSupport cannot be copied. Warning: Object NbEditorDocument cannot be copied. Warning: Object NbEditorSettingsInitializer cannot be copied. Warning: Object NbEditorUI cannot be copied. Warning: Object NbEditorUtilities cannot be copied. Warning: Object NbLocalizer cannot be copied. Warning: Object RepositListener cannot be copied. Warning: Object SimpleIndentEngineBeanInfo cannot be copied. Warning: Object NbHTMLSettingsInitializer cannot be copied. Warning: Object NbReaderProvider cannot be copied. Warning: Object JCExtension cannot be copied. Warning: Object JCLevelPanel cannot be copied. Warning: Object JCProgressPanel cannot be copied. Warning: Object JCStorage cannot be copied. Warning: Object JCUpdater cannot be copied. Warning: Object JavaIndentEngineBeanInfo cannot be copied. Warning: Object NbJavaCompletion cannot be copied. Warning: Object NbJavaFastImport cannot be copied. Warning: Object NbJavaFastOpen cannot be copied. Warning: Object NbJavaSettingsInitializer cannot be copied. Warning: Object NbJavaSyntaxSupport cannot be copied. Warning: Object AbbrevsEditor cannot be copied. Warning: Object AbbrevsEditorPanel cannot be copied. Warning: Object AllOptionsBeanInfo cannot be copied. Warning: Object BaseOptionsBeanInfo cannot be copied. Warning: Object BasePrintOptionsBeanInfo cannot be copied. Warning: Object ColoringArrayEditor cannot be copied. Warning: Object ColoringBeanBeanInfo cannot be copied. Warning: Object ColoringEditor cannot be copied. Warning: Object ContextOptionsListener cannot be copied. Warning: Object HTMLOptionsBeanInfo cannot be copied. Warning: Object HTMLPrintOptionsBeanInfo cannot be copied. Warning: Object JavaOptionsBeanInfo cannot be copied. Warning: Object JavaPrintOptionsBeanInfo cannot be copied. Warning: Object KeyBindingsEditor cannot be copied. Warning: Object KeyBindingsEditorPanel cannot be copied. Warning: Object MacrosEditor cannot be copied. Warning: Object MacrosEditorPanel cannot be copied. Warning: Object OptionSupport cannot be copied. Warning: Object PlainOptionsBeanInfo cannot be copied. Warning: Object PlainPrintOptionsBeanInfo cannot be copied. Warning: Object ScrollInsetsCustomEditor cannot be copied. Warning: Object ScrollInsetsEditor cannot be copied. Warning: Object UpgradeOptions cannot be copied. Warning: Object NbPlainSettingsInitializer cannot be copied. Warning: Object DORegistryListener cannot be copied. Warning: Object FormatterIndentEngine cannot be copied. Warning: Object FormatterIndentEngineBeanInfo cannot be copied. Warning: Object IndentEngineFormatter cannot be copied. Warning: Object NbDialogSupport cannot be copied. Warning: Object NbEditorDocument cannot be copied. Warning: Object NbEditorSettingsInitializer cannot be copied. Warning: Object NbEditorUI cannot be copied. Warning: Object NbEditorUtilities cannot be copied. Warning: Object NbLocalizer cannot be copied. Warning: Object RepositListener cannot be copied. Warning: Object SimpleIndentEngineBeanInfo cannot be copied.
Assigning to Vita, but think that problem can be in clazz module and it's handle copy.
Reassigning to clazz module, exception is thrown from CompiledDataObject.handleCopy ().
'Assigned to' field changed as well, sorry.
In the current state, the .class file cannot be copied - the module serializes the default instance to the target place instead of copying .class file. The exception is OK as long as it does not appear appears in a dialog other than "Unexpected exception". After the #13644 is implemented, serialization won't be done at all.
Due to explanation, which Svata mentioned above, I'm changing priority. Honza, if you don't agree, please put priority back.
Please verify whether it still happens. From my side, the .class file is disabling copy operation if it is not serializable. Currently Copy operation over a folder does not throw any exception, only the warning message is generated. The .class object itself (if it's not serializable) cannot be copied at all.
Resolved for 3.3.x or earlier, no new info since then -> closing.