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 154900

Summary: "Copy Class" and "Move Class" don't support nested classes
Product: java Reporter: matthies <matthies>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 204440    

Description matthies 2008-12-08 09:49:11 UTC
Two related issues:
(1) "Copy Class" and "Move Class" can't be invoked on a nested class.
(2) "Copy Class" and "Move Class" can't copy/move into a nested class scope.

One common use case is cloning a nested class, for which you'd need both (1) and (2).
Comment 1 Jan Pokorsky 2008-12-08 13:44:19 UTC
Copy and Move refactoring are implemented for java files not classes for now.

It is possible to use Move Inner To Outer + Move refactorings as a work around for Move Nested.
Comment 2 matthies 2008-12-08 13:54:40 UTC
For the most interesting use cases there is no workaround as there is no "Move Outer To Inner".