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 243552

Summary: Move interface using "Move class" and "To Type" option
Product: java Reporter: lforet <lforet>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description lforet 2014-04-04 10:09:40 UTC
Suppose I have two interfaces :

public interface Mother {}
public interface Son extends Mother {}

If I do "Move Class" from Son interface and select Mother in "To Type" option, I have the following result :

public interface Mother {
      public static class Son implements Mother {}
}

What I expected was : 

public interface Mother {
    public interface Son extends Mother {}
}

Regards.

FYI : it works for "to package" option.
Comment 1 lforet 2014-04-04 10:09:49 UTC
Created attachment 146542 [details]
IDE log
Comment 2 Ralph Ruijs 2014-07-15 12:05:49 UTC
changeset:   3be317c32017
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Tue Jul 15 14:03:04 2014 +0200
summary:     #243552 - Move interface using "Move class" and "To Type" option
Comment 3 Quality Engineering 2014-07-17 02:16:38 UTC
Integrated into 'main-silver', will be available in build *201407170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3be317c32017
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #243552 - Move interface using "Move class" and "To Type" option