Skip to content

Bean definition override leads to NPE due to inconsistent equality check #23593

Closed
@andrey-vasilyev

Description

@andrey-vasilyev

Hi, I've recently tried to switch to spring 5.1.9. And my old code (based on spring 4.3.4) stopped working because of NPE during context refresh. I've created a minimal reproducible example https://gist.github.com/andrey-vasilyev/ad42b33c13ce850bfd7065ef35f95017

The issues (difference in behaviour) seems to be in AbstractBeanDefinition.equals method. Could you please take a look?

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: 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