-
Notifications
You must be signed in to change notification settings - Fork 75
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
String index out of bounds: 3 #226
Comments
jqno
added a commit
that referenced
this issue
Dec 26, 2018
Thanks for reporting this, it's indeed a bug introduced in version 3.1 at the place you mention. |
Wow, that was quick! Thank you! |
You're welcome :) |
akhalikov
pushed a commit
to akhalikov/equalsverifier
that referenced
this issue
Nov 6, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the latest version of equalsverifier introduced a bug in AnnotationCacheBuilder, more specifically line 106. The code assumes that methods which starts with "get" will always have more characters, and will throw a
StringIndexOutOfBoundsException
on methods simply namedget(..)
What steps will reproduce the problem?
Basic EqualsVerifier-test on any class with a method named
get
.What is the code that triggers this problem?
Given this class:
And this JUnit-test:
The test is green on version 3.0.3, but throws the exception below on version 3.1.
What error message or stack trace does EqualsVerifier give?
What did you expect?
Green test.
Which version of EqualsVerifier are you using?
Version 3.1.
The text was updated successfully, but these errors were encountered: