Skip to content

java.lang.Object should count as a simple property, at least from the autowiring perspective [SPR-6600] #11266

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions