Skip to content

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

@martinlippert

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions