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 7804 - Error while moving files to new packages
Summary: Error while moving files to new packages
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 95/98
: P4 normal (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-03 20:03 UTC by Salil Surendran
Modified: 2009-11-07 11:17 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 Salil Surendran 2000-10-03 20:03:19 UTC
When you cut a java source file in the explorer from a package and then paste it
in another package the new package specification is added to the top of the
source file. But the old package specification is not removed. This leads to
compiler errors. For eg you move a file from myproject.mypackage.myfiles to
myproject.mypackage.otherfiles. The head of the source file will be

package myproject.mypackage.otherfiles;
package myproject.mypackage.myfiles;

The old package specification is not removed.
Comment 1 Miloslav Metelka 2000-12-13 14:45:59 UTC
Svato, I hope it already works but I'm not sure.
Comment 2 Tomas Hurka 2001-01-12 13:15:59 UTC
I tested it yesterday on the latest build from cvs and it worked for me.
Comment 3 Quality Engineering 2003-07-01 13:19:19 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.