Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid early ConversionService determination in StandardBeanExpressionResolver #27446

Closed
jhoeller opened this issue Sep 21, 2021 · 0 comments
Closed
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@jhoeller
Copy link
Contributor

A BeanPostProcessor definition with property values that need conversion may trigger SpEL resolution (even if no expression is being found) which in turn determines and caches the containing BeanFactory's ConversionService at the time of the first evaluation attempt. Since the BeanFactory's ConversionService can change in a later initialization phase, e.g. when the application context discovers a bean with the name "conversionService", we need to revise this towards on-demand access to ConfigurableBeanFactory.getConversionService() from StandardBeanExpressionResolver.

@jhoeller jhoeller added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Sep 21, 2021
@jhoeller jhoeller added this to the 5.3.11 milestone Sep 21, 2021
@jhoeller jhoeller self-assigned this Sep 21, 2021
artembilan added a commit to spring-projects/spring-integration that referenced this issue Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant