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 7805 - 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:21 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 Svata Dedic 2000-10-09 09:08:59 UTC
Please tell us build number of your IDE - there was several such errors in
pre-1070 builds. Also - because I can't reproduce the bug - I'll need more
information about the exact sequence of actions; does it occur regularly or
occasionally (if only occasionally, can you provide list of action that may make
the bug more likely to happen ?)
Comment 2 Svata Dedic 2000-10-12 07:02:59 UTC
According to the reporter, the bug happens on the following configuration:
Windows 95, JDK-1.3, Forte4J 1.0 (Build 842).
I'm changing the result to FIXED - this bug and several others were solved in
Jaga/Boston branch several months ago.
Comment 3 Quality Engineering 2003-07-01 13:19:23 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.