-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Milestone
Description
Describe the bug
When using methods made accessible via @ExtensionMethod
these usages of the methods are neither found by "References in Workspace" (Ctrl-G), nor are they changed when refactoring such methods' names.
To Reproduce
-
Make some methods available via
@ExtensionMethod
:@ExtensionMethod(MyExtensions.class) // containing a static method foo(Object o) class AnyClass { void anyMethod() { Object o = new Object(); o.foo(); } }
-
Variations of the problem
- "References in Workspace"
- move cursor on
foo
- press Ctrl-G
- Result: search for usages of foo() doesn't contain class
AnyClass
- move cursor on
- "Refactor"/"Rename"
- move cursor on
foo
- press Alt-Ctrl-R
- type
bar
as a new name and press return - Result: method name gets changed in Class
MyExtensions
, but usage inAnyClass
does not. Results in syntax error in classAnyClass
.
- move cursor on
- Invocation from class
MyExtensions
- go to class
MyExtensions
- move cursor on
foo
- invoke one of the above operation
- both operation don't find/change anything in class
AnyClass
- go to class
- "References in Workspace"
Expected behavior
- usages of
foo()
in classAnyClass
should be found - renaming of
foo()
's name should affect usage in classAnyClass
Version info (please complete the following information):
- Lombok version: 1.18.26
- Eclipse: 2023-03
Metadata
Metadata
Assignees
Labels
No labels