JNI only strictly defines two valid values for a jboolean and there's no consensus on whether other values greater than one will be interpreted as TRUE in all situations.
The safest interpretation is to say that it will lead to undefined behaviour to pass any value besides zero or one as a jboolean.
JNI only strictly defines two valid values for a
jboolean
and there's no consensus on whether other values greater than one will be interpreted as TRUE in all situations.The safest interpretation is to say that it will lead to undefined behaviour to pass any value besides zero or one as a
jboolean
.Addresses https://github.com/jni-rs/jni-rs/pull/400 Closes #19