Skip to content

EncodedResource does not include charset in equals() implementation [SPR-12767] #17364

@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-12767 and commented

Status Quo

EncodedResource supports an encoding or a Charset for reading from the underlying Resource; however, the implementation of equals() is based solely on the resource and encoding. Thus, if a Charset is specified instead of an encoding, invocations of equals() will not work as expected.

Deliverables

  1. Include the Charset in the implementation of equals() in EncodedResource.

Affects: 3.2.1

Referenced from: commits 93c70b7, 1f9bc50, 6c93745

Backported to: 3.2.14

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions