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

Accept small BigInteger values #9655

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented Apr 9, 2024

Pull Request Description

Fixes #9392 by accepting more values as isBigInteger in EqualsSimpleNode.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Java,
    style guides
  • All code has been tested:
    • Unit tests have been written where possible.

@JaroslavTulach JaroslavTulach added the CI: No changelog needed Do not require a changelog entry for this PR. label Apr 9, 2024
@JaroslavTulach JaroslavTulach self-assigned this Apr 9, 2024
"!interop.isTime(hostObject)",
"!interop.isDate(hostObject)",
"!interop.isTimeZone(hostObject)"
})
long hashCodeForHostObject(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After adding few new small java.math.BigInteger values to ValuesGenerator, this specialization started to trigger for a HostObject around java.util.List - e.g. something that should go to hasArrayElement specialization.

Adding few negative guards, but possibly the right thing is to use the SpecializationType pattern.

@JaroslavTulach JaroslavTulach merged commit 32df870 into develop Apr 9, 2024
37 checks passed
@JaroslavTulach JaroslavTulach deleted the wip/jtulach/BigIntEquals9392 branch April 9, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support returning small BigInteger values from Java
3 participants