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

Fix StringSequence.equals() for different lengths #15465

Closed

Conversation

dreis2211
Copy link
Contributor

Hi,

while working on an optimization in StringSequence.subSequence() I noticed that StringSequence.equals() returns true for sequences with different lengths. In order to be able to easily cherry-pick that here is the isolated PR just for the fix without the optimization (on which I'd ask for feedback later in a separate PR).

Cheers,
Christoph

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 14, 2018
@snicoll snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 17, 2018
@snicoll snicoll added this to the 1.5.x milestone Dec 17, 2018
@snicoll snicoll self-assigned this Dec 17, 2018
@snicoll snicoll modified the milestones: 1.5.x, 2.0.8 Dec 17, 2018
snicoll pushed a commit that referenced this pull request Dec 17, 2018
snicoll added a commit that referenced this pull request Dec 17, 2018
* pr/15465:
  Polish "Fix StringSequence.equals() for different lengths"
  Fix StringSequence.equals() for different lengths
@snicoll snicoll closed this in c0b07a9 Dec 17, 2018
@snicoll
Copy link
Member

snicoll commented Dec 17, 2018

Good catch, thanks again Christoph. This is now merged in 2.0.x, 2.1.x and master with a polish commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants