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 262229 - Extract Interface/Superclass issues
Summary: Extract Interface/Superclass issues
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.2
Hardware: All All
: P2 normal (vote)
Assignee: Ralph Ruijs
Depends on:
Reported: 2016-05-26 08:09 UTC by Vladimir Voskresensky
Modified: 2016-05-26 08:10 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2016-05-26 08:09:46 UTC
public class ToSplit {   
    // candidate method for extracting into super-class/interface
    // this method uses nested class in it's signature
    public ExtractClass extract() { return null; }    
    private static final class ExtractClass {}

    // method to keep in this class
    public KeepClass keep() { return null; }
    public static final class KeepClass {}

When I try to extract extract() method into  Interface/Superclass there is no way to move it together with nested ExtractClass which is required by method

- checkboxes should be not only for functions, but for nested classes to be extracted as well
- when extract() method is processed and nested ExtractClass was not selected provide refactoring warning