New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delombok Java 8 Type Annotations #855

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

Comments

Projects
None yet
1 participant
@lombokissues
Collaborator

lombokissues commented Jul 14, 2015

Migrated from Google Code (issue 820)

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

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

Collaborator

lombokissues commented Jul 14, 2015

👤 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

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

End of migration

Collaborator

lombokissues commented Jul 14, 2015

End of migration

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