You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Austin Stephens (JIRA)" <ji...@apache.org> on 2018/07/13 20:13:00 UTC
[jira] [Created] (NETBEANS-1043) Refactor -> Move method does not
update method::references
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-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