Skip to content

Refine KotlinDetector.isKotlinType documentation for Kotlin 2.x lambdas #32905

@antechrestos

Description

@antechrestos

Using the spring cloud stream with reactive used to work well by instanciating kotlin function as follows

@Configuration(proxyBeanMethods = false) class MessageConfiguration { @Bean fun myMessageConsumer() = { rawMessagesFlux -> rawMessagesFlux .flatMap { // ... } .then() }

Moving to kotlin 2.0 fails as generated bean class returns false when passing it to KotlinDetector.isKotlinType. Hence starting of spring cloud stream module fails as KotlinFunctionWrapper is not put and the Configuration expects java Function, Consumer or Supplier ...

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)theme: kotlinAn issue related to Kotlin supporttype: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions