-
Notifications
You must be signed in to change notification settings - Fork 141
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
Remove needless TypeBinding hashCode() implementations #3412 #3477
Conversation
4ada025
to
d73c10b
Compare
Since ArrayBinding does not override equals() any custom hashCode() implementation is likely to introduce hash collisions. Especially for same "leafComponentType" but different "dimensions" eclipse-jdt#3412
Since LocalTypeBinding does not override equals() any custom hashCode() implementation is likely to introduce hash collisions. Especially for same "enclosingType" but different "enclosingCase" eclipse-jdt#3412
Since WildcardBinding does not override equals() any custom hashCode() implementation is likely to introduce hash collisions. Especially for same "genericType" but different "bound" eclipse-jdt#3412
d73c10b
to
79091ce
Compare
@srikanth-sankaran can you review, please? |
Right now I am unable to access https://bugs.eclipse.org/bugs/show_bug.cgi?id=430425 which is referenced from I will state that I am nervous about this change - Do we have data to show hash code collisions are a real BURNING issue ? I wrote much of I am inclined to say let us leave this as is - unless it is a burning issue somewhere. Sorry that cannot be the answer you are looking for having invested your time. |
I can't access bugzilla either, but you submitted a test org.eclipse.jdt.core.tests.builder.IncrementalTests18.test430425() with it which still holds. |
it's available now (https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/5555#note_2956610) |
OK, i close this PR and issue and would reopen if i stumble across a non-synthetic reproducer. |
Without overriding equals() any custom hashCode() implementation is likely to introduce hash collisions.
#3412