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 - Move interface using "Move class" and "To Type" option
Summary: Move interface using "Move class" and "To Type" option
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-04 10:09 UTC by lforet
Modified: 2014-07-17 02:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (496.67 KB, text/plain)
2014-04-04 10:09 UTC, lforet
Details

Note You need to log in before you can comment on or make changes to this bug.
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