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 116116 - "Change method parameters" does not insert import statements
Summary: "Change method parameters" does not insert import statements
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks: 152192
  Show dependency tree
 
Reported: 2007-09-20 10:33 UTC by Tim Lebedkov
Modified: 2009-04-18 19:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2007-09-20 10:33:59 UTC
If I add a parameter of type Collection the IDE changes all necessary files but does not ask whether it is
java.util.Collection or something else and does not insert appropriate import statements => the code is not compileable.
Comment 1 Jan Becicka 2007-09-26 09:51:18 UTC
Definitely valid issue.
Comment 2 Max Sauer 2009-03-04 14:36:46 UTC
Current design adds imports in case there is no clash, otherwise a hint is displayed afterwards. I've made this improvement about a week ago.
---
Product Version: NetBeans IDE Dev (Build 090304)
Java: 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 1.6.0_07-b06-57
System: Mac OS X version 10.5.6 running on x86_64; MacRoman; en_US (nb)
Comment 3 Tim Lebedkov 2009-04-18 19:37:26 UTC
thanks