Delombok Java 8 Type Annotations #855

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

Projects

None yet

1 participant

@lombokissues
Collaborator

Migrated from Google Code (issue 820)

@lombokissues
Collaborator

👤 Stephan.Pirnbaum   🕗 Jun 03, 2015 at 14:48 UTC

Hello,
according to the reply on SO on my question:
http://stackoverflow.com/questions/30614830/delombok-java-8-type-annotations

The problem is that type annotations cannot be resolved by Delombok correctly. Let's assume I have this code:

import edu.umd.cs.findbugs.annotations.NonNull;
....
Set<@ NonNull PredictedConsumption> consumptions

This will result in:
Set<(UNKNOWN[JCAnnotatedType]: @ NonNull() PredictedConsumption)> consumptions;

As pointed out in the answer, the "bug" is in this line, which explains the output:
https://github.com/rzwitserloot/lombok/blob/master/src/delombok/lombok/delombok/PrettyCommentsPrinter.java﹟L1618

Thanks

@lombokissues
Collaborator

End of migration

@rzwitserloot rzwitserloot added a commit that closed this issue Aug 18, 2015
@rzwitserloot [Closes #855] [jdk8] annotations are now legit on types and type para…
…meters in JDK8, but we’d print errors in delombok when encountering these.
1dcbc16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment