Skip to content

symbol indexing causes duplicate symbols to appear when annotation appears multiple times #1780

Closed

Description

@martinlippert

If a class is annotated multiple times with the same annotation (via meta annotations), indexing happens multiple times for this class as well.

Example:

@Component
@RestController
public class MyController {..}

This class gets the @Component annotation twice, once via the direct annotation on the class and once via the @RestController, which is a @Controller, which is a @Component.

As a result, two bean index elements and corresponding symbols appear for this component.

Activity

  1. added this to the 5.1.0.RELEASE milestone on Feb 11, 2026
  2. added
    for: eclipse
    for: vscode
    on Feb 11, 2026
  3. added a commit that references this issue on Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: spring index & symbolstype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions