lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

Inlining generated getter gives @Getter instead of fieldname #527

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Lombok generated getter inline.
2. Field with lombok generated accessors rename.
3. other refactorings.

What is the expected output? What do you see instead?
refactoring result with errors.

What version of the product are you using? On what operating system?
any

Please provide any additional information below.
Tested in eclipse.

Original issue reported on code.google.com by vyachesl...@gmail.com on 5 Jun 2013 at 5:15

GoogleCodeExporter commented 9 years ago
Confirmed 1.

Inlining a generated getter method yields
  int foo = @Getter;
instead of
  int foo = bar;

(Why'd you want to do that? Still, it is a bug...)

I'll extract point 2 to a separate issue.

Original comment by askon...@gmail.com on 13 Jun 2013 at 7:45

GoogleCodeExporter commented 9 years ago
See issue 533 for your second point.

Original comment by askon...@gmail.com on 13 Jun 2013 at 7:54

GoogleCodeExporter commented 9 years ago
I do that as one of steps of refactoring.

Original comment by vyachesl...@gmail.com on 14 Jun 2013 at 5:36