lombok annotations on field declarations with multiple fields only look at the first field. #127

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

Projects

None yet

1 participant

@lombokissues
Collaborator

Migrated from Google Code (issue 54)

@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Sep 24, 2009 at 21:47 UTC

this:

private @ Getter int x, y, z;

will only generate a getter for 'x', but this:

public @ SuppressWarnings("deprecation") Date classSpec = new Date("foo"), methodName = 

new Date("foo"), methodDescriptor = new Date("foo");

clearly shows that the general theory is that the annotation is supposed to apply to every listed
field, so getters for all 3 fields should have been generated.

@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Jul 19, 2010 at 14:55 UTC

@lombokissues lombokissues added this to the 0.9.3 milestone Jul 14, 2015
@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Jul 20, 2010 at 08:47 UTC

I've confirmed that the intent of @ Foo int x, y; is indeed for that annotation to apply to both fields. Eclipse really doesn't make this easy, but we'll fix it.

@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Jul 20, 2010 at 10:01 UTC

Fixed in commit d7ee0bc - should be out in release 0.9.3 (Burrowing Whale).

@lombokissues
Collaborator

End of migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment