2
0
mirror of synced 2025-02-23 23:08:14 +00:00
mobile/bind/testdata/universe.java.golden
Elias Naur 2802a0168e bind: include all generated code in tests
The tests was missing the generated code for the universe package
and some parts of the reverse generated code. Include it.

Change-Id: Id5e2f215c8f6f717c30377965255c4b64f31e923
Reviewed-on: https://go-review.googlesource.com/34992
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2017-01-12 22:17:26 +00:00

53 lines
1.2 KiB
Plaintext

// Java class go.error is a proxy for talking to a Go program.
// gobind -lang=java
//
// File is generated by gobind. Do not edit.
package go;
import go.Seq;
public interface error {
public String error();
}
// Java class go.Universe is a proxy for talking to a Go program.
// gobind -lang=java
//
// File is generated by gobind. Do not edit.
package go;
import go.Seq;
public abstract class Universe {
static {
Seq.touch(); // for loading the native library
_init();
}
private Universe() {} // uninstantiable
// touch is called from other bound packages to initialize this package
public static void touch() {}
private static native void _init();
private static final class proxyerror extends Exception implements Seq.Proxy, error {
private final Seq.Ref ref;
@Override public final int incRefnum() {
int refnum = ref.refnum;
Seq.incGoRef(refnum);
return refnum;
}
proxyerror(Seq.Ref ref) { this.ref = ref; }
@Override public String getMessage() { return error(); }
public native String error();
}
}