Skip to content

ContextFunctionCatalogAutoConfiguration is doing component scan at the wrong phase #1149

Closed
@snicoll

Description

@snicoll

Describe the bug
org.springframework.cloud.function.context.config.ContextFunctionCatalogAutoConfiguration is an auto-configuration that should back off if a FunctionCatalog bean is present. PlainFunctionScanConfiguration is doing component scan, which is a PARSE_CONFIGURATION business. You can't scan for additional beans that should happen early and prevent that from happening if a bean is present.

Sample
This will fail in Spring Framework 6.2.0-M1 onwards as we've tighten up that rule, see spring-projects/spring-framework#23206. As such, I am expecting the tests of this project to fail when building against Spring Framework 6.2.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions