java.lang.Object should count as a simple property, at least from the autowiring perspective [SPR-6600] #11266
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Alex Wei opened SPR-6600 and commented
Spring would try to autowire a property if the property type is java.lang.Object, and throw the UnsatisfiedDependencyException because every single bean is a candidate for autowiring.
java.lang.Object probably should be treated as a simple property type like String, URI, URL and enum etc, so that Spring won't try to autowire a property of type java.lang.Object.
Affects: 2.5.5
Referenced from: commits 572abbc
The text was updated successfully, but these errors were encountered: