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 252621

Summary: [Extract Superclass] Import for annotation is not added
Product: java Reporter: Jiri Prox <jiriprox>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2015-05-27 14:25:29 UTC
Extract superclass refactoring does not add import for annotation in the target class.

Have a code:
1) 
import java.beans.Transient;

public class JavaApplication7 {

    @Transient
    public void m() {}   
}

2) extract super class containing m
-> import for annotation is not added


Product Version: NetBeans IDE Dev (Build 201505270357)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Ralph Ruijs 2015-07-01 13:08:23 UTC
changeset:   fca15d0b974b
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Wed Jul 01 14:37:24 2015 +0200
summary:     #252621 - [Extract Superclass] Import for annotation is not added
Comment 2 Quality Engineering 2015-07-02 01:19:04 UTC
Integrated into 'main-silver', will be available in build *201507020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fca15d0b974b
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #252621 - [Extract Superclass] Import for annotation is not added