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

Test to make sure JPY PyObject.getXXXValue() errors out immediately #3598

Merged
merged 2 commits into from
Apr 20, 2023

Conversation

jmao-denver
Copy link
Contributor

@jmao-denver jmao-denver commented Mar 24, 2023

Fixes #3597

Linked to: jpy-consortium/jpy#99

@jmao-denver jmao-denver added this to the Mar 2023 milestone Mar 24, 2023
@jmao-denver jmao-denver requested a review from devinrsmith March 24, 2023 20:35
@jmao-denver jmao-denver requested a review from chipkent as a code owner March 24, 2023 20:36
@jmao-denver jmao-denver self-assigned this Mar 24, 2023
@jmao-denver jmao-denver requested a review from rcaudy as a code owner March 24, 2023 20:36
@jmao-denver jmao-denver changed the title Test to make sure JPY PyObject.getXXXValue() error out immediately Test to make sure JPY PyObject.getXXXValue() errors out immediately Mar 24, 2023
@jmao-denver jmao-denver reopened this Mar 25, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2023
chipkent
chipkent previously approved these changes Apr 3, 2023
@pete-petey pete-petey modified the milestones: Mar 2023, Apr 2023 Apr 19, 2023
@devinrsmith
Copy link
Member

Given the lossy nature of getIntValue(), we should audit all of our own uses of it and switch over to more precise calls:

Math.toIntExact(valueIn.getLongValue())

or something equivalent to that (considering int, short, byte, and char consumer).

@devinrsmith
Copy link
Member

Follow-up #3716

Copy link
Member

@rcaudy rcaudy left a comment

Choose a reason for hiding this comment

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

Code owner sign off based on previous approvals.

@jmao-denver jmao-denver merged commit 12467d1 into deephaven:main Apr 20, 2023
@jmao-denver jmao-denver deleted the 3597-jpy-exception-test branch May 3, 2023 19:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a JPY test case to verify a fix that the next JPY release will include
5 participants