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

Annotations in Scala not extracted as consumed types #13751

Closed
stuhood opened this issue Nov 30, 2021 · 1 comment · Fixed by #13810
Closed

Annotations in Scala not extracted as consumed types #13751

stuhood opened this issue Nov 30, 2021 · 1 comment · Fixed by #13810
Assignees

Comments

@stuhood
Copy link
Member

stuhood commented Nov 30, 2021

A Java annotation interface like:

public @interface CorrespondsTo {
...
}

...is not extracted as a consumed symbol in Scala code when used like:

@CorrespondsTo("extract")
def ...

Note that scala-dump-source-analysis does not report the annotation as a consumed type, but java-dump-source-analysis does report it as a declared type.

@stuhood
Copy link
Member Author

stuhood commented Nov 30, 2021

This represented roughly 2.5% of the issues in akka-http.

@tdyas tdyas self-assigned this Dec 5, 2021
tdyas pushed a commit that referenced this issue Dec 6, 2021
Extract annotations as consumed types for dependency inference.

Closes #13751.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants