Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1043

Refactor -> Move method does not update method::references

    XMLWordPrintableJSON

Details

    Description

      Given the following code (was done inside a class for simplicity):

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

      If you Refactor Move `moveThis` from `Bar` to `Foo`, the reference in Baz.prepareStuff() does not get updated.

      Attachments

        Issue Links

          Activity

            People

              arunava.sinha ARUNAVA SINHA
              Sir Intellegence Austin Stephens
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h