commit | fe0977739a89a889a55c57b7eb87878a5ac991ce | [log] [tgz] |
---|---|---|
author | Elias Naur <elias.naur@gmail.com> | Sun Jan 01 19:55:42 2017 +0100 |
committer | Elias Naur <elias.naur@gmail.com> | Wed Jan 11 19:09:27 2017 +0000 |
tree | 697c0775ac66c1e6a3afdeed9ba95ba86b32f810 | |
parent | ff6f6e8d8edd2e15d9fcc385db11e9fff18fb3ae [diff] |
bind: generate reverse bindings for implicit Java types Before this CL, Java types that were only implicitly referenced were represented as interface{}. However, if a value of such an implicit type were passed to Java, a runtime crash would occur because there would be no wrapper class to unwrap. Fix this by generating implicit types, fixing the crashes, gaining type safety, and removing the interface{} special case in the generator. While we're here, remove a redundant insert to the clsMap map in java.go. Change-Id: Ic50125da3d7cd6075899bf628d419b084c630490 Reviewed-on: https://go-review.googlesource.com/34777 Reviewed-by: David Crawshaw <crawshaw@golang.org>
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.