Skip to content

auto completion of bean names for @DependsOn annotation is broken #1829

Closed

Description

@martinlippert

Auto completion for @DependsOn doesn't work anymore.

This happens as soon as there is no @Component annotation on the class.

Internally, the DependsOnCompletionProcessor.getBeanNameFromSourceCodePosition method causes a NPE due to not finding the component annotation on the type declaration.

Question here is whether the bean name should be inferred by re-using the same mechanism that the component indexer uses to infer the bean name.

Activity

  1. added this to the 5.2.0.RELEASE milestone on Mar 6, 2026
  2. self-assigned this
    on Mar 6, 2026
  3. added
    for: eclipse
    for: vscode
    on Mar 6, 2026
  4. added 4 commits that reference this issue on Mar 10, 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: code completiontype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions