Skip to content

Datatable not correct for find spring components? #594

@Jenson3210

Description

@Jenson3210

Not sure if this is a bug or expected behaviour.

when we run find spring components recipe, we get the results back of all @Bean annotated methods. However, some/all these beans that are marked with @bean are not added to the datatables of the results it seems.
Classes with @Component or extensions are shown correctly it seems.

  1. Using a codebase without classes marked with @Component
  2. Running the recipe org.openrewrite.java.spring.search.FindSpringComponents
  3. See there are results

Screenshot 2024-09-23 at 10 05 08

  1. See details of results
    Screenshot 2024-09-23 at 10 05 25

  2. See that only one of the datables is available (as no bean's through component annotation?)
    Screenshot 2024-09-23 at 10 05 35

  3. The available datatable contains the correct rows
    Screenshot 2024-09-23 at 10 06 39

EXPECTED:
Also the other table should contain the beans identified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions