- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)theme: kotlinAn issue related to Kotlin supportAn issue related to Kotlin supporttype: enhancementA general enhancementA general enhancement
Milestone
Description
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)Issues in core modules (aop, beans, core, context, expression)theme: kotlinAn issue related to Kotlin supportAn issue related to Kotlin supporttype: enhancementA general enhancementA general enhancement