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 254452

Summary: Copying class adds unwanted import
Product: java Reporter: stwr
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: NEW ---    
Severity: normal CC: gokumar
Priority: P4    
Version: 8.1   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: This is the generated copy of ClassC

Description stwr 2015-08-17 17:42:40 UTC
Created attachment 155404 [details]
This is the generated copy of ClassC

Test Case --> http://services.netbeans.org/synergy/client/app/#/case/5117/suite/2021/v/1

--Modified Test Case--

Copy ClassC instead of ClassA:

package usages;

public class ClassC {
    
}

--Actual Result--

package move;

import usages.*;

public class ClassCCopy {
    
}

The import is not used and should not be automatically added.
Comment 1 stwr 2015-08-17 17:47:18 UTC
The same happens to ClassB in the following test case --> http://services.netbeans.org/synergy/client/app/#/case/5124/suite/2021/v/1.

There is unwanted import usages.*;
Comment 2 Jiri Prox 2015-08-25 08:22:51 UTC
*** Bug 254684 has been marked as a duplicate of this bug. ***
Comment 3 Jiri Prox 2015-09-01 15:33:18 UTC
reproducible, but IMHO not so serious