spring-projects / spring-projects/spring-tools

take `@Inherited` into account when identifying annotations

Open
#1,438 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.