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 # : 200808141419 ] [ JDK VERSION : 1.6.0_07 ] Copy classes from a folder to another don't update the package in the class files
1-Create a new GUIFormExamples sample project; 2-Create a new class at 'examples' package 3-Create a new package named 'newpackage' in the same level of 'examples' package 4-Copy all the classes from 'examples' to 'newpackage' using Ctrl+C and Ctrl+V All the packages entries on the ALL classes are broken. BTW, if you just copy the simple class, it works. The problem is still just for form files.
The refactoring is not triggered when copy&pasting more files at once
Yes, the Refactoring->Copy action for packages and selection of multiple files has never been implemented yet. The Copy action only updated package and top level class declaration as a side effect. References was not updated at all. The plain copy does really plain copy in NB 6.5 after issue 141093. I can try to implement a java refactoring plugin to 6.5 that will work at least the same way as the plain copy of java files in previous versions.
fixed as http://hg.netbeans.org/main/rev/21b8ae9addc0
Integrated into 'main-golden', available in build *200808260201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/21b8ae9addc0 User: Jan Pokorsky <jpokorsky@netbeans.org> Log: #144640: classes copied to another package do not update the package declaration