BeanCreationException error message should always include declaring class of constructor (or factory method) #27139
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
While working on Spring Data support for Spring Native I see error messages coming from
https://github.com/spring-projects/spring-framework/blob/main/spring-beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java#L279
I get exceptions like the one below.
Unfortunately it does not contain information about the class to be constructed, which would be really helpful when trying to get things in Spring Native to work.
I think this happens when we construct BeanDefinitions programmatically, but I’m not completely sure about that.
It would be great if the error message could be improved to always include the class name to be constructed.
The text was updated successfully, but these errors were encountered: