Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Arrays.hashCode() in ByteArrayResource.hashCode() #27544

Closed
wants to merge 1 commit into from

Conversation

stsypanov
Copy link
Contributor

Current implementation produces equal hash codes for all instances of ByteArrayResource with the same length of underlying array disregarding their contents. This seems to be wrong as hash code should be calculated on the basis of the content of byte[].

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 11, 2021
@jhoeller jhoeller added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 11, 2021
@jhoeller jhoeller modified the milestones: 6.0 M1, 5.3.11 Oct 11, 2021
@sbrannen sbrannen self-assigned this Oct 11, 2021
sbrannen added a commit to sbrannen/spring-framework that referenced this pull request Oct 11, 2021
@sbrannen
Copy link
Member

This has been merged into 5.3.x in 114fa47 and revised in eb07dea.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants