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 236877 - [Move method] Imports are not added
Summary: [Move method] Imports are not added
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Ralph Ruijs
Depends on:
Reported: 2013-10-08 11:40 UTC by Jiri Prox
Modified: 2015-03-25 03:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2013-10-08 11:40:19 UTC
Imports from original package are not added when moving class to another package.

Steps to reproduce:
1) have a classes


2) ClassB has method
public void m(ClassA p) {}

3) move ClassB to Tgt
-> import of ClassA is not added to Tgt

Product Version: NetBeans IDE 7.4 (Build 201310012201)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b14
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\7.4
Comment 1 Ralph Ruijs 2015-03-24 10:14:35 UTC
changeset:   ea218a5626e3
user:        Ralph Benjamin Ruijs <>
date:        Tue Mar 24 11:13:04 2015 +0100
summary:     #236877 - [Move method] Imports are not added
Comment 2 Ralph Ruijs 2015-03-24 10:26:24 UTC
Sorry, description talked about moving a class. Moving a method, as noted by the summary, does not import correctly.
Comment 3 Ralph Ruijs 2015-03-24 10:43:12 UTC
changeset:   d47ba22771c9
user:        Ralph Benjamin Ruijs <>
date:        Tue Mar 24 11:42:23 2015 +0100
summary:     #236877 - [Move method] Imports are not added
Comment 4 Quality Engineering 2015-03-25 03:21:11 UTC
Integrated into 'main-silver', will be available in build *201503250001* on (upload may still be in progress)

User: Ralph Benjamin Ruijs <>
Log: #236877 - [Move method] Imports are not added