Check exceptions after calling Enum.ordinal() from Rust
authorMatt Corallo <git@bluematt.me>
Sun, 12 Dec 2021 18:35:18 +0000 (18:35 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 12 Dec 2021 18:40:21 +0000 (18:40 +0000)
commit3f0f3132a37f1ff47d67a13a8d1a1fe5d169b5af
treed1e80049ef2650605b3971f7a7038f3e796cec74
parentccfdc89be1530dd6dc21d57dd3eaceeaaac2304f
Check exceptions after calling Enum.ordinal() from Rust

This generally shouldn't ever fire, but otherwise Java says, e.g.

WARNING in native method: JNI call made without checking exceptions when required to from CallIntMethod
at org.ldk.impl.bindings.create_invoice_from_channelmanager(Native Method)
java_strings.py