Merge "Use ErrnoException for handling exceptions in JNI functions" into main