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.
FileObject foDst = TopManager.getDefault().getRepository().findResource(dirName); DataObject dobDstDir = DataObject.find(foDst); DO = dob.copy( (DataFolder) dobDstDir); copy() throws java.lang.IllegalArgumentException: Class name qualifier does not match outerclass/source name at org.netbeans.modules.java.ClassElementImpl.setName(ClassElementImpl.java:525)
The exception is thrown, because ClassElement.setName() checks, if the new name corresponds to its outer class or package name. There was a bug in Identifier.getQualifier() that sometimes prevent the check from working properly.
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.