Skip to content

OverflowError: value too large to convert to jshort #688

Open
@AnEx-ofc

Description

Hi,
I am geting this error:

10-22 00:34:43.056 1595 1894 I python : File "jnius/jnius_export_class.pxi", line 1164, in jnius.jnius.JavaMultipleMethod.call
10-22 00:34:43.056 1595 1894 I python : File "jnius/jnius_export_class.pxi", line 872, in jnius.jnius.JavaMethod.call
10-22 00:34:43.057 1595 1894 I python : File "jnius/jnius_conversion.pxi", line 51, in jnius.jnius.populate_args
10-22 00:34:43.057 1595 1894 I python : OverflowError: value too large to convert to jshort

for this line:
intent.putExtra(name, 1_234_567_890)
Most probably because of:
File "jnius/jnius_utils.pxi", line 321

if r == 'S' or r == 'I':

Both short and integer having same scoring logic, if short is come later in sign_args it got selected even though value not fit inside the short value range

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions