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 47917 - Move class doesn't work
Summary: Move class doesn't work
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
: 48244 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-25 14:38 UTC by ehucka
Modified: 2007-04-03 18:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace of thrown exception (1.50 KB, text/plain)
2004-08-25 14:38 UTC, ehucka
Details
Suggested fix (needs to be reviewed) (902 bytes, patch)
2004-08-27 13:49 UTC, Jan Becicka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2004-08-25 14:38:09 UTC
try to move class
org.netbeans.tests.examples.packa.Bean from
nbcvs:/refactoring/test/qa-functional/data/projects/default
to org.netbeans.tests.examples.packb.
Comment 1 ehucka 2004-08-25 14:38:54 UTC
Created attachment 17134 [details]
stacktrace of thrown exception
Comment 2 Jan Becicka 2004-08-25 14:42:18 UTC
Can you provide "manual" steps to reproduce? Thanks
Move Class works for me.
Comment 3 ehucka 2004-08-25 14:46:45 UTC
1. open project
nbcvs:/refactoring/test/qa-functional/data/projects/default
2. select class Bean in package org.netbeans.tests.examples.packa
3. invoke move class refactoring
4. select package org.netbeans.tests.examples.packb as its parameter
5. do refactoring
Comment 4 Jan Becicka 2004-08-27 13:49:03 UTC
Created attachment 17195 [details]
Suggested fix (needs to be reviewed)
Comment 5 Martin Matula 2004-09-02 12:39:41 UTC
Fixed. I have created a different fix, since the condition that
Honza's patch removed seems to be necessary for some edge cases.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java,v
 <--  MetadataElement.java
new revision: 1.25; previous revision: 1.24
done
Comment 6 Jan Becicka 2004-09-07 12:51:57 UTC
*** Issue 48244 has been marked as a duplicate of this issue. ***
Comment 7 ehucka 2004-10-25 13:50:43 UTC
verified