spring-projects / spring-projects/spring-tools
take `@Inherited` into account when identifying annotations
Open
@martinlippert is already working on this.
Since Dec 16, 2024.
for: eclipse
for: vscode
theme: code completion
theme: spring index & symbols
theme: validation
type: enhancement
- Dominant language
- Java
- Stars
- 983
- Forks
- 240
- Avg merge
- 7d 1h
- Merged PRs (30d)
- 7
Description
Some annotations are annotated with @Inherited, which means that they "appear" on subtypes of the annotated type as well. This is, for example, the case for @Qualifier annotations. They can be set on superclasses, but subtypes are treated by Spring as if they would have the annotation as well.
This means, the indexing needs to be improved to not only take annotations on the type directly into account, but also look for inherited ones from supertypes, interfaces, and super interfaces.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.