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/don't use equals & hashCode of foreign JsonNode implementations #278

Merged
merged 17 commits into from
Feb 23, 2025

Conversation

harrel56
Copy link
Owner

New equality semantics are bit problematic, problems may appear when:

  • using propertyNames with const/enum
  • when using 2 different JsonNodeFactories, const/enum may never validate
  • anyone providing custom JsonNode implementations is unnecessarily burdened with equals & hashCode implementations and there is no way to explicitly enforce it.

Let only use equals & hashCode semantics in officially supported JSON providers.

@harrel56 harrel56 added the bug Something isn't working label Feb 23, 2025
@harrel56 harrel56 merged commit 0eff0d7 into master Feb 23, 2025
22 checks passed
@harrel56 harrel56 deleted the fix/property-names-with-enum branch February 23, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant