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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16544094#comment-16544094 ] 

Geertjan Wielenga commented on NETBEANS-1043:
---------------------------------------------

Are you using rc1 or the vc3 build? See blogs.apache.org/netbeans for details.

> 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
>            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