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 100299

Summary: [rename type] Rename Type should return a warning related to import and declare the same type in a comp. unit
Product: java Reporter: kely_garcia <kely_garcia>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description kely_garcia 2007-04-07 19:00:47 UTC
Build 200703271800

Rename Type should return a warning related to: A Compilation Unit must not 
declared and import a type with the same name. 
Steps to reproduce: Rename A to List in the following

import java.util.List;
public class A {
}

yields the following refactored class:
import java.util.List
public class List {

}