Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming field and generated getter also "renames" annotation #568

Closed
lombokissues opened this issue Jul 14, 2015 · 5 comments
Closed

Renaming field and generated getter also "renames" annotation #568

lombokissues opened this issue Jul 14, 2015 · 5 comments

Comments

@lombokissues
Copy link

Migrated from Google Code (issue 533)

@lombokissues
Copy link
Author

👤 askoning   🕗 Jun 13, 2013 at 19:54 UTC

From: issue #562

See also issue #359, issue #389.

Renaming a field and its generated getter also change the @ Getter annotation to the new getter value.

Have
@ Getter int foo;

Press Alt-Shift-R, R to bring up the rename dialog
Change foo to bar

@ getBar int bar;

@lombokissues
Copy link
Author

👤 askoning   🕗 Jun 13, 2013 at 19:57 UTC

@lombokissues
Copy link
Author

👤 andras.frey@eyan.eu   🕗 Sep 01, 2014 at 11:28 UTC

Eclipse 3.7.2
Lombok v1.12.4 (January 15th, 2014)

Similar problem with generic class:

public class LombokTest {
@ Getter
@ Setter
private T field;
}

Result of renaming T to XYZ:

public class LombokTest {
XYZ
XYZ
private XYZ field;
}

@lombokissues
Copy link
Author

End of migration

lianhaijun pushed a commit to lianhaijun/lombok that referenced this issue May 8, 2020
@Rawi01
Copy link
Collaborator

Rawi01 commented Nov 19, 2023

The issue has been addressed and is covered by a test

@Rawi01 Rawi01 closed this as completed Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants