2
0
mirror of synced 2025-02-23 14:58:12 +00:00
mobile/bind/testdata/issue10788.java.h.golden
Elias Naur 7df33f4a5c mobile/bind: allow bound packages to refer to imported bound packages
Multiple packages are already supported, but only as if each packages
were bound in isolation. This CL lets a bound package refer to other
bound packages in its exported functions, types and fields.

In Java, the JNI class jclass and constructor jmethodID are exported
so other packages can construct proxies of other packages' interfaces.

In ObjC, the class @interface declarations are moved from the package
.m file to its .h file to allow other packages to constructs its
interface proxies.

Add a supporting test package, secondpkg, and add Java and ObjC tests
for the new cross package functionality. Also add simplepkg for
testing corner cases where the generated Go file must not include its
bound package.

While we're here, stop generating Go proxy types for struct types;
only Go interfaces can be implemented in the foreign language.

Change-Id: Icbfa739c893703867d38a9100ed0928fbd7a660d
Reviewed-on: https://go-review.googlesource.com/20575
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-03-12 06:23:01 +00:00

21 lines
615 B
Plaintext

// JNI function headers for the Go <=> Java bridge.
// gobind -lang=java issue10788
//
// File is generated by gobind. Do not edit.
#ifndef __Issue10788_H__
#define __Issue10788_H__
#include <jni.h>
extern jclass proxy_class_issue10788_TestInterface;
extern jmethodID proxy_class_issue10788_TestInterface_cons;
void cproxyissue10788_TestInterface_DoSomeWork(int32_t refnum, int32_t s);
void cproxyissue10788_TestInterface_MultipleUnnamedParams(int32_t refnum, nint p0, nstring p1, int64_t p2);
extern jclass proxy_class_issue10788_TestStruct;
extern jmethodID proxy_class_issue10788_TestStruct_cons;
#endif