You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "ARUNAVA SINHA (JIRA)" <ji...@apache.org> on 2018/07/24 05:49:00 UTC

[jira] [Assigned] (NETBEANS-1043) Refactor -> Move method does not update method::references

     [ https://issues.apache.org/jira/browse/NETBEANS-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ARUNAVA SINHA reassigned NETBEANS-1043:
---------------------------------------

    Assignee: ARUNAVA SINHA

> 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
>            Assignee: ARUNAVA SINHA
>            Priority: Major
>
> 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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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