Newline at the top of a file causes issues in eclipse. #114

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

Projects

None yet

1 participant

@lombokissues
Collaborator

Migrated from Google Code (issue 41)

@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Aug 28, 2009 at 02:18 UTC

This is a really weird one. For the full report, see this discussion on the googlegroups:

http://groups.google.com/group/project-lombok/browse_thread/thread/b19d602e8123d1e8

@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Aug 31, 2009 at 22:59 UTC

Preliminary research: It seems that having lombok generate any method with an annotation on the method
itself (whether or not there are (generated) annotations on method parameters is not relevant) will trigger this
bug. So, that would be toString, equals, hashCode (as they also generate an @ Override), but also @ Getter for
a field that has a @ NonNull/@ NotNull/@ Nullable annotation, which gets copied over.

Much likely culprit is that the source positions of these generated annotations are not properly set. Let us pray
that no part of the eclipse backend parser architecture is too stupid to figure it out from the basic AST and
reparses. That's why most of those source positions are 0 in the first place.

Will try to fix this now.

--Roel & Reinier

@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Sep 01, 2009 at 19:12 UTC

Fixed in commits da36708 and
25e33d0 and 5b16055.

Will be released in v0.8.4.

@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Sep 01, 2009 at 22:58 UTC

Issue #107 has been merged into this issue.

@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Oct 16, 2009 at 08:55 UTC

Issue #111 has been merged into this issue.

@lombokissues
Collaborator

End of migration

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