bind,cmd: accept Java API in bound packages

Accept Java API interface types as arguments and return values from
bound Go package functions and methods. Also, allow Go structs
to extend Java classes and implement Java interfaces as well as override
and implement methods.

This is the third and final part of the implementation of the golang/go#16876
proposal.

Fixes golang/go#16876

Change-Id: I6951dd87235553ce09abe5117a39a503466163c0
Reviewed-on: https://go-review.googlesource.com/28597
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Elias Naur
2016-09-22 10:16:33 +00:00
parent 08c3b2f4a5
commit bdf873ed8f
42 changed files with 2036 additions and 370 deletions
+2 -2
View File
@@ -79,11 +79,11 @@ Java_go_java_Java__1init(JNIEnv *env, jclass _unused) {
}
// skipped function Super with unsupported parameter or return types
// skipped function O.Super with unsupported parameter or return types
// skipped method O with unsupported parameter or return types
// skipped function Super with unsupported parameter or return types
// skipped function S.Super with unsupported parameter or return types
// skipped method S with unsupported parameter or return types