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 100306

Summary: [Move Inner To Outer Level] Move Inner does not return a warning when the type named already exists in the package
Product: java Reporter: kely_garcia <kely_garcia>
Component: RefactoringAssignee: Daniel Prusa <dprusa>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description kely_garcia 2007-04-08 00:48:05 UTC
Build ID: 200609161800 (Netbeans 6.0 M3)

Move Inner Class To Outer Level should return a warning when the type named 
already exists in the package. 
Steps to reproduce:
Move Inner Class 'Inner' on the following:  
package p;
class A{
	class Inner{
	}
}
class Inner {
}

yields the following refactored class Inner:
package p;
class Inner{
}
Comment 1 Jan Becicka 2007-04-23 09:41:10 UTC
Move Inner To Outer Level not implemented in 6.0 so far.
Comment 2 Daniel Prusa 2008-02-15 13:45:08 UTC
Reproducible only when there are more top-level classes in one source file, the check for name clash is performed
against file objects names. Decreasing priority to P4.
Comment 3 David Strupl 2009-03-31 15:56:16 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 4 Quality Engineering 2009-11-02 11:15:05 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX