Skip to content
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

Spoon fails to mark @SuppressWarnings package as implicit if named element is used #49

Open
slarse opened this issue Mar 4, 2020 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@slarse
Copy link
Collaborator

slarse commented Mar 4, 2020

I've no idea why this happens, but if you write this:

@SuppressWarnings(value="unchecked")

then Spoon will not mark java.lang as implicit, and the output will be:

@java.lang.SuppressWarnings(value="unchecked")

Took me an hour of debugging to figure out ... To be clear, the problem is the use of a named element, if you remove the value=, it the annotation type's package gets properly marked as implicit.

@slarse slarse added the bug Something isn't working label Mar 4, 2020
@slarse slarse changed the title Spoon fails to mark @SuppressWarnings package as implicit if value keyword is used Spoon fails to mark @SuppressWarnings package as implicit if named lement is used Mar 4, 2020
slarse added a commit that referenced this issue Mar 4, 2020
@slarse slarse changed the title Spoon fails to mark @SuppressWarnings package as implicit if named lement is used Spoon fails to mark @SuppressWarnings package as implicit if named element is used Mar 5, 2020
@slarse
Copy link
Collaborator Author

slarse commented Mar 5, 2020

It's being worked on INRIA/spoon#3281

@slarse slarse added the wontfix This will not be worked on label Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant