Skip to content

Add support for tuning the code generation for bean property values #31427

Closed
@wilkinsona

Description

@wilkinsona

Affects: 6.0

The failure described in spring-projects/spring-boot#37637 occurs because there's a bean property value that is an instance of MultipartConfigElement. The code generation that runs during AOT processing doesn't know how to handle such a value and it fails. This can be addressed by using an inner-bean to describe the multipart config but, as discussed with @snicoll, it would be nicer if this wasn't necessary.

This could perhaps be achieved by allowing custom org.springframework.beans.factory.aot.BeanDefinitionPropertyValueCodeGenerator.Delegate or similar implementations to be plugged in through aot.factories or some other mechanism.

Metadata

Metadata

Assignees

Labels

theme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions