Skip to content

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

@slarse

Description

@slarse

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions