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.

Bug 6950 - IllegalArgumentException is thrown, if DataObject is copy()ed into the same folder
Summary: IllegalArgumentException is thrown, if DataObject is copy()ed into the same f...
Status: CLOSED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P2 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-07-03 09:15 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2000-07-03 09:15:24 UTC
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)
Comment 1 Svata Dedic 2000-07-05 09:09:59 UTC
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.
Comment 2 Quality Engineering 2003-07-01 13:12:21 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 3 Quality Engineering 2003-07-01 13:20:01 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.