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

Fix exception handling on crossbow-android platform #130

Closed
enfipy opened this issue Aug 1, 2022 · 0 comments · Fixed by #121
Closed

Fix exception handling on crossbow-android platform #130

enfipy opened this issue Aug 1, 2022 · 0 comments · Fixed by #121
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@enfipy
Copy link
Collaborator

enfipy commented Aug 1, 2022

Objective

Currently, Android Java Exceptions are not handled properly and resulting in ugly panics.

What problem does this solve, or what need does it fill?

Problem with Exception handling in Rust calls to Java.

What solution would you like?

Use this approach:

// ...call_method...
jnienv.exception_check()?;

Read more in this StackOverflow question and jni docs.

@enfipy enfipy added bug Something isn't working enhancement New feature or request labels Aug 1, 2022
@enfipy enfipy self-assigned this Aug 1, 2022
@enfipy enfipy closed this as completed in 144b275 Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant