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 46610 - Cut&Paste class finish on 'class already exist in target package'
Summary: Cut&Paste class finish on 'class already exist in target package'
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-07-27 13:50 UTC by Lukas Hasik
Modified: 2007-04-03 18:02 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 Lukas Hasik 2004-07-27 13:50:41 UTC
[200407270649], jdk1.4.2_4 & 1.5.0

-start ide with fresh userdir, create new java
project with main class
-create a new package in Source packages
-Cut the Main.java class and try paste it to the
new package

*class is cut&pasted and 'Refactor Code for Moved
class' dialog appears BUT after 'Finish' it ends
on fatal error 'Class "Main" already exists in the
target package'
Comment 1 Marek Grummich 2004-07-27 13:55:09 UTC
Regression - I am sure it worked previously!
Comment 2 Lukas Hasik 2004-07-27 14:00:07 UTC
you're right Marek, it's regression and according to
http://qa.netbeans.org/processes/bug_priority_guidelines.html
I'm increasing priority to P1
Comment 3 Jan Becicka 2004-07-27 14:33:21 UTC
Checking in MoveClassRefactoring.java;
/cvs/refactoring/src/org/netbeans/modules/refactoring/api/MoveClassRefactoring.java,v
 <--  MoveClassRefactoring.java
new revision: 1.17; previous revision: 1.16
done
Comment 4 Lukas Hasik 2004-07-28 10:38:25 UTC
[200407271830] - verified, thanks Honza.