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

ArrayList converts bytes to str #612

Open
wensheng opened this issue Nov 26, 2021 · 1 comment
Open

ArrayList converts bytes to str #612

wensheng opened this issue Nov 26, 2021 · 1 comment
Labels

Comments

@wensheng
Copy link

from jnius import autoclass

ArrayList = autoclass("java.util.ArrayList")

md = ArrayList()
md.add(b'hello')
md.add(b'world')

print(type(md.get(0)))  # should be bytes, but is str
print(md.get(0))  # should be b'hello', but is 'hello'

Added bytes to ArrayList, but got str back.

Is it possible to get it fixed?

@tshirtman
Copy link
Member

Sadly none of the maintainers, have much time for the project currently, so i wouldn't expect it to be solved on its own. If you want to investigate and propose a fix, we'll do our best to review it timely.

Thanks for reporting it anyway.

@Julian-O Julian-O added the bug label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants