Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
9.0
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
- links to