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

Summary: Cut&Paste class finish on 'class already exist in target package'
Product: editor Reporter: Lukas Hasik <lhasik>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: CLOSED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P1    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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.