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

Remove needless TypeBinding hashCode() implementations #3412 #3477

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Dec 18, 2024

Without overriding equals() any custom hashCode() implementation is likely to introduce hash collisions.

#3412

@jukzi jukzi force-pushed the TypeBindingWrapper_hashCodes branch from 4ada025 to d73c10b Compare December 18, 2024 12:20
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
@jukzi jukzi force-pushed the TypeBindingWrapper_hashCodes branch from d73c10b to 79091ce Compare December 18, 2024 13:23
@jukzi jukzi marked this pull request as ready for review December 18, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant