Skip to content

Injecting bean in configurable class using load-time weaving broken when referenced on scoped-proxy class [SPR-14892] #19458

Closed
@spring-projects-issues

Description

@spring-projects-issues

Holger Stenzhorn opened SPR-14892 and commented

In version 4.3.3 the following code to inject a bean into a Hibernate entity using load time weaving worked flawlessly and someBean is correctly set but after upgrading to version 4.3.4 someBean is now null.

@Configurable(preConstruction = true)
@Entity
public class ExampleEntity {
    @Inject SomeBean someBean;
    ...
}

Affects: 4.3.4

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions