Austin Stephens created NETBEANS-1043:
-----------------------------------------

             Summary: Refactor -> Move method does not update method::references
                 Key: NETBEANS-1043
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1043
             Project: NetBeans
          Issue Type: Bug
          Components: java - Refactoring
    Affects Versions: 9.0
            Reporter: Austin Stephens


Given the following code (was done inside a class for simplicity):
{code:java}
    public static class Baz{
        public static void doStuff(BooleanSupplier source){
            boolean val = source.getAsBoolean();
        }
        public static void prepareStuff(){
            doStuff(Bar::moveThis);
        }
    }

    public static class Bar {
        public static boolean moveThis(){
            return true;
        }
    }
    public static class Foo{
        
    }
{code}
If you Refactor Move `moveThis` from `Bar` to `Foo`, the reference in 
Baz.prepareStuff() does not get updated.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to