Lombok: Eclipse search References in Workspace does not find generated delegation methods

Created on 14 Jul 2015  路  7Comments  路  Source: projectlombok/lombok

_Migrated from Google Code (issue 410)_

Most helpful comment

"Same problem for generated getters (@ Data, @ Getter, etc), they do not show up when searching for field references or getting the call hierarchy for the field."

That's a big inconvenience when navigating in the project :(. You have to open the type in a separate outline view, then manually find the setter and/or getter from there and invoke the call hierarchy or reference searching from there.

All 7 comments

:bust_in_silhouette: r.spilker   :clock8: Sep 03, 2012 at 18:46 UTC

In the code below, the search results for References in Workspace (Ctrl+Shift+G) or Open Call Hierarchy (Ctrl+Alt+H) on A锕焟 don't display the generated delegate method.

class Container {
@ Delegate A a;
}

class A {
public void m();
}

:bust_in_silhouette: guillaume.rosset.dw   :clock8: Dec 21, 2012 at 10:23 UTC

The renaming of a delegated method does not woks any more, calling methods using the delegated method are not impacted.

:bust_in_silhouette: jorn86   :clock8: Mar 08, 2013 at 10:02 UTC

Same problem for generated getters (@ Data, @ Getter, etc), they do not show up when searching for field references or getting the call hierarchy for the field.

:bust_in_silhouette: askoning   :clock8: Feb 10, 2014 at 14:23 UTC

And, if you search for other references in code that uses Container.m(), you get a list of references to Container (the type), instead of references to the method

_End of migration_

"Same problem for generated getters (@ Data, @ Getter, etc), they do not show up when searching for field references or getting the call hierarchy for the field."

That's a big inconvenience when navigating in the project :(. You have to open the type in a separate outline view, then manually find the setter and/or getter from there and invoke the call hierarchy or reference searching from there.

very frustrating to have to open outline view! :disappointed:

Was this page helpful?
0 / 5 - 0 ratings