Skip to content

Remove support for callable references in BeanRegistrarDsl #35694

@sdeleuze

Description

@sdeleuze

The support for callable references in BeanRegistrarDsl which has been introduced in #34922 adds 400KB of bytecode and around 150 additional classes to the spring-beans JAR! That's could be due to the combination of inlining, crossinlining, parameters with default values and reified generics. In any case, the cost of this syntactic sugar is too high, especially given the fact it adds to the previously known limitation that you need to introduces variants for each number of parameters supported.

As a consequence and given the fact that the alternative syntax is reasonably good, I will revert the related commit before the GA (sorry @wakingrufus) and adapt the documentation introduced in #35549 accordingly.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)theme: kotlinAn issue related to Kotlin supporttype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions