Annotations are disappearing during delombok #342

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

Projects

None yet

2 participants

@lombokissues
Collaborator

Migrated from Google Code (issue 269)

@lombokissues
Collaborator

๐Ÿ‘ค anthony@whitford.com ย  ๐Ÿ•— Sep 05, 2011 at 16:40 UTC

Consider the attached code.
A delombok of the code will NOT retain the @ XmlEnumValue annotations.
I expect the @ XmlEnumValue annotations to be retained during delombok.

This problem exists in 0.10.0, but I also think it existed in 0.9.3.
I can witness this problem on Windows and Mac.
I am using Java 6 update 24 and 26.

@lombokissues
Collaborator

๐Ÿ‘ค anthony@whitford.com ย  ๐Ÿ•— Sep 05, 2011 at 16:40 UTC

๐Ÿ”— AnotherDataExample.java View file

@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Sep 20, 2011 at 19:06 UTC

Delombok currently runs off of a source printer we found in the openJDK sources. It's pretty bad; this certainly isn't the first case where the printer is just wrong. We fixed it in e4bff6b but hopefully we can move to lombok.ast soon which has a much better tested printer. It got this one right, for example.

Will be in 0.10.1.

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

End of migration

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