dodorare/crossbow

Fix exception handling on crossbow-android platform

Closed this issue · 0 comments

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.