commit | e0bb90a94838226a712d34827c457e987dff1566 | [log] [tgz] |
---|---|---|
author | Elias Naur <elias.naur@gmail.com> | Mon Dec 19 23:46:07 2016 +0100 |
committer | Elias Naur <elias.naur@gmail.com> | Tue Dec 27 15:54:01 2016 +0000 |
tree | 5e3db8d363741d8674b652718e3d21bc96ff3988 | |
parent | 6a96d4c7cfa48b88f4239efd650b525de7617dc5 [diff] |
bind: clear JNI return values when an exception was raised The return value of a JNI call is undefined when an exception was raised during the call. To make sure comparisons with NULL works, clear the value when an exception is raised. No new tests; some devices, like the Samsung S2, crashes with the existing tests without this CL. Change-Id: I85eb983e9444fff1f05e0f83a0640d106280e54d Reviewed-on: https://go-review.googlesource.com/34631 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
The Go mobile repository holds packages and build tools for using Go on mobile platforms.
Package documentation as a starting point:
The Go Mobile project is experimental. Use this at your own risk. While we are working hard to improve it, neither Google nor the Go team can provide end-user support.
This is early work and installing the build system requires Go 1.5. Follow the instructions on golang.org/wiki/Mobile to install the gomobile command, build the basic and the bind example apps.
Contributions to Go are appreciated. See https://golang.org/doc/contribute.html.