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
Long Type Problem (IllegalArgumentException) #99
Comments
I implemented a work around by adding support for Long primitives. I doubt this is the right answer because if it were, you'd have done it in the first place. Sending you a pull request so you can at least look at it. |
Thank you very much for the pull request. Actually, I thought that I could get away with int to long conversion (because python is more relaxed when it comes to long primitives), but the autoboxing from int primitive to Long object on the Java side did not work. Your patch fixed the problem and make the protocol more correct. Python integers that are too large to fit in a Java integer are still converted to long primitive when possible (that was always supported). |
I have a simple data class. One of the attributes, the checksum, is of type "Long" and here is its setter definition:
From python, certain values throw an exception:
And here is the traceback for the two that don't work:
I would expect all three examples to work.
The text was updated successfully, but these errors were encountered: