Skip to content

completion for @DependsOn should not suggest its own bean #1429

Closed

Description

@martinlippert

At the moment, code completion for @DependsOn suggests all the bean names of the project, but it should not suggest the name of the bean on which the annotation itself is declared on. Does not make a lot of sense to declare a dependency on its own.

@Component
@DependsOn(<*>)
public class MovieService {
...

Proposals in this case should not include the movieService bean name.

Activity

  1. added
    for: eclipse
    for: vscode
    on Dec 3, 2024
  2. added this to the 4.28.0.RELEASE milestone on Dec 3, 2024
  3. self-assigned this
    on Dec 3, 2024
  4. martinlippert commented on Feb 3, 2025

    @martinlippert
    MemberAuthor

    Looks like this does work for

    @DependsOn(<*>)
    

    but not for

    @DependsOn("<*>")
    
  5. added 2 commits that reference this issue on Feb 24, 2025
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: enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions