github.com/SkycoinProject/gomobile@v0.0.0-20190312151609-d3739f865fa6/bind/testdata/classes.java.c.golden (about)

     1  // File is generated by gobind. Do not edit.
     2  
     3  #include <jni.h>
     4  #include "seq.h"
     5  #include "classes.h"
     6  
     7  static jclass class_java_lang_Runnable;
     8  static jmethodID m_java_lang_Runnable_run;
     9  static jclass class_java_io_InputStream;
    10  static jmethodID m_java_io_InputStream_read__;
    11  static jmethodID m_java_io_InputStream_read___3B;
    12  static jmethodID m_java_io_InputStream_read___3BII;
    13  static jmethodID m_java_io_InputStream_toString;
    14  static jclass class_java_util_concurrent_Future;
    15  static jmethodID m_java_util_concurrent_Future_get__;
    16  static jmethodID m_java_util_concurrent_Future_get__JLjava_util_concurrent_TimeUnit_2;
    17  static jclass class_java_lang_Object;
    18  static jmethodID m_java_lang_Object_toString;
    19  static jclass class_java_util_concurrent_TimeUnit;
    20  static jmethodID m_java_util_concurrent_TimeUnit_toString;
    21  static jclass class_java_util_Spliterators;
    22  static jmethodID m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_2;
    23  static jmethodID m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfInt_2;
    24  static jmethodID m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfLong_2;
    25  static jmethodID m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfDouble_2;
    26  static jmethodID m_java_util_Spliterators_toString;
    27  ret_jint cproxy_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_2(jint a0) {
    28  	JNIEnv *env = go_seq_push_local_frame(1);
    29  	jobject _a0 = go_seq_from_refnum(env, a0, NULL, NULL);
    30  	jobject res = (*env)->CallStaticObjectMethod(env, class_java_util_Spliterators, m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_2, _a0);
    31  	jobject _exc = go_seq_get_exception(env);
    32  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
    33  	if (_exc != NULL) {
    34  		res = NULL;
    35  	}
    36  	jint _res = go_seq_to_refnum(env, res);
    37  	go_seq_pop_local_frame(env);
    38  	ret_jint __res = {_res, _exc_ref};
    39  	return __res;
    40  }
    41  
    42  ret_jint cproxy_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfInt_2(jint a0) {
    43  	JNIEnv *env = go_seq_push_local_frame(1);
    44  	jobject _a0 = go_seq_from_refnum(env, a0, NULL, NULL);
    45  	jobject res = (*env)->CallStaticObjectMethod(env, class_java_util_Spliterators, m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfInt_2, _a0);
    46  	jobject _exc = go_seq_get_exception(env);
    47  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
    48  	if (_exc != NULL) {
    49  		res = NULL;
    50  	}
    51  	jint _res = go_seq_to_refnum(env, res);
    52  	go_seq_pop_local_frame(env);
    53  	ret_jint __res = {_res, _exc_ref};
    54  	return __res;
    55  }
    56  
    57  ret_jint cproxy_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfLong_2(jint a0) {
    58  	JNIEnv *env = go_seq_push_local_frame(1);
    59  	jobject _a0 = go_seq_from_refnum(env, a0, NULL, NULL);
    60  	jobject res = (*env)->CallStaticObjectMethod(env, class_java_util_Spliterators, m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfLong_2, _a0);
    61  	jobject _exc = go_seq_get_exception(env);
    62  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
    63  	if (_exc != NULL) {
    64  		res = NULL;
    65  	}
    66  	jint _res = go_seq_to_refnum(env, res);
    67  	go_seq_pop_local_frame(env);
    68  	ret_jint __res = {_res, _exc_ref};
    69  	return __res;
    70  }
    71  
    72  ret_jint cproxy_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfDouble_2(jint a0) {
    73  	JNIEnv *env = go_seq_push_local_frame(1);
    74  	jobject _a0 = go_seq_from_refnum(env, a0, NULL, NULL);
    75  	jobject res = (*env)->CallStaticObjectMethod(env, class_java_util_Spliterators, m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfDouble_2, _a0);
    76  	jobject _exc = go_seq_get_exception(env);
    77  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
    78  	if (_exc != NULL) {
    79  		res = NULL;
    80  	}
    81  	jint _res = go_seq_to_refnum(env, res);
    82  	go_seq_pop_local_frame(env);
    83  	ret_jint __res = {_res, _exc_ref};
    84  	return __res;
    85  }
    86  
    87  static jclass class_java_lang_System;
    88  static jmethodID m_s_java_lang_System_console;
    89  static jmethodID m_java_lang_System_toString;
    90  ret_jint cproxy_s_java_lang_System_console() {
    91  	JNIEnv *env = go_seq_push_local_frame(0);
    92  	jobject res = (*env)->CallStaticObjectMethod(env, class_java_lang_System, m_s_java_lang_System_console);
    93  	jobject _exc = go_seq_get_exception(env);
    94  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
    95  	if (_exc != NULL) {
    96  		res = NULL;
    97  	}
    98  	jint _res = go_seq_to_refnum(env, res);
    99  	go_seq_pop_local_frame(env);
   100  	ret_jint __res = {_res, _exc_ref};
   101  	return __res;
   102  }
   103  
   104  static jclass class_java_Future;
   105  static jclass sclass_java_Future;
   106  static jmethodID m_java_Future_get__;
   107  static jmethodID sm_java_Future_get__;
   108  static jmethodID m_java_Future_get__JLjava_util_concurrent_TimeUnit_2;
   109  static jmethodID sm_java_Future_get__JLjava_util_concurrent_TimeUnit_2;
   110  static jclass class_java_InputStream;
   111  static jclass sclass_java_InputStream;
   112  static jmethodID m_java_InputStream_read__;
   113  static jmethodID sm_java_InputStream_read__;
   114  static jmethodID m_java_InputStream_read___3B;
   115  static jmethodID sm_java_InputStream_read___3B;
   116  static jmethodID m_java_InputStream_read___3BII;
   117  static jmethodID sm_java_InputStream_read___3BII;
   118  static jmethodID m_java_InputStream_toString;
   119  static jmethodID sm_java_InputStream_toString;
   120  static jclass class_java_Object;
   121  static jclass sclass_java_Object;
   122  static jmethodID m_java_Object_toString;
   123  static jmethodID sm_java_Object_toString;
   124  static jclass class_java_Runnable;
   125  static jclass sclass_java_Runnable;
   126  static jmethodID m_java_Runnable_run;
   127  static jmethodID sm_java_Runnable_run;
   128  static jclass class_java_util_Iterator;
   129  static jclass class_java_util_Spliterator;
   130  static jclass class_java_util_PrimitiveIterator_OfInt;
   131  static jclass class_java_util_Spliterator_OfInt;
   132  static jclass class_java_util_PrimitiveIterator_OfLong;
   133  static jclass class_java_util_Spliterator_OfLong;
   134  static jclass class_java_util_PrimitiveIterator_OfDouble;
   135  static jclass class_java_util_Spliterator_OfDouble;
   136  static jclass class_java_io_Console;
   137  static jmethodID m_java_io_Console_flush;
   138  static jmethodID m_java_io_Console_toString;
   139  
   140  void init_proxies() {
   141  	JNIEnv *env = go_seq_push_local_frame(20);
   142  	jclass clazz;
   143  	clazz = go_seq_find_class("java/lang/Runnable");
   144  	if (clazz != NULL) {
   145  		class_java_lang_Runnable = (*env)->NewGlobalRef(env, clazz);
   146  		m_java_lang_Runnable_run = go_seq_get_method_id(clazz, "run", "()V");
   147  	}
   148  	clazz = go_seq_find_class("java/io/InputStream");
   149  	if (clazz != NULL) {
   150  		class_java_io_InputStream = (*env)->NewGlobalRef(env, clazz);
   151  		m_java_io_InputStream_read__ = go_seq_get_method_id(clazz, "read", "()I");
   152  		m_java_io_InputStream_read___3B = go_seq_get_method_id(clazz, "read", "([B)I");
   153  		m_java_io_InputStream_read___3BII = go_seq_get_method_id(clazz, "read", "([BII)I");
   154  		m_java_io_InputStream_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
   155  	}
   156  	clazz = go_seq_find_class("java/util/concurrent/Future");
   157  	if (clazz != NULL) {
   158  		class_java_util_concurrent_Future = (*env)->NewGlobalRef(env, clazz);
   159  		m_java_util_concurrent_Future_get__ = go_seq_get_method_id(clazz, "get", "()Ljava/lang/Object;");
   160  		m_java_util_concurrent_Future_get__JLjava_util_concurrent_TimeUnit_2 = go_seq_get_method_id(clazz, "get", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;");
   161  	}
   162  	clazz = go_seq_find_class("java/lang/Object");
   163  	if (clazz != NULL) {
   164  		class_java_lang_Object = (*env)->NewGlobalRef(env, clazz);
   165  		m_java_lang_Object_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
   166  	}
   167  	clazz = go_seq_find_class("java/util/concurrent/TimeUnit");
   168  	if (clazz != NULL) {
   169  		class_java_util_concurrent_TimeUnit = (*env)->NewGlobalRef(env, clazz);
   170  		m_java_util_concurrent_TimeUnit_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
   171  	}
   172  	clazz = go_seq_find_class("java/util/Spliterators");
   173  	if (clazz != NULL) {
   174  		class_java_util_Spliterators = (*env)->NewGlobalRef(env, clazz);
   175  		m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_2 = go_seq_get_static_method_id(clazz, "iterator", "(Ljava/util/Spliterator;)Ljava/util/Iterator;");
   176  		m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfInt_2 = go_seq_get_static_method_id(clazz, "iterator", "(Ljava/util/Spliterator$OfInt;)Ljava/util/PrimitiveIterator$OfInt;");
   177  		m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfLong_2 = go_seq_get_static_method_id(clazz, "iterator", "(Ljava/util/Spliterator$OfLong;)Ljava/util/PrimitiveIterator$OfLong;");
   178  		m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfDouble_2 = go_seq_get_static_method_id(clazz, "iterator", "(Ljava/util/Spliterator$OfDouble;)Ljava/util/PrimitiveIterator$OfDouble;");
   179  		m_java_util_Spliterators_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
   180  	}
   181  	clazz = go_seq_find_class("java/lang/System");
   182  	if (clazz != NULL) {
   183  		class_java_lang_System = (*env)->NewGlobalRef(env, clazz);
   184  		m_s_java_lang_System_console = go_seq_get_static_method_id(clazz, "console", "()Ljava/io/Console;");
   185  		m_java_lang_System_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
   186  	}
   187  	clazz = go_seq_find_class("java/Future");
   188  	if (clazz != NULL) {
   189  		class_java_Future = (*env)->NewGlobalRef(env, clazz);
   190  		sclass_java_Future = (*env)->GetSuperclass(env, clazz);
   191  		sclass_java_Future = (*env)->NewGlobalRef(env, sclass_java_Future);
   192  		m_java_Future_get__ = go_seq_get_method_id(clazz, "get", "()Ljava/lang/Object;");
   193  		sm_java_Future_get__ = go_seq_get_method_id(sclass_java_Future, "get", "()Ljava/lang/Object;");
   194  		m_java_Future_get__JLjava_util_concurrent_TimeUnit_2 = go_seq_get_method_id(clazz, "get", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;");
   195  		sm_java_Future_get__JLjava_util_concurrent_TimeUnit_2 = go_seq_get_method_id(sclass_java_Future, "get", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;");
   196  	}
   197  	clazz = go_seq_find_class("java/InputStream");
   198  	if (clazz != NULL) {
   199  		class_java_InputStream = (*env)->NewGlobalRef(env, clazz);
   200  		sclass_java_InputStream = (*env)->GetSuperclass(env, clazz);
   201  		sclass_java_InputStream = (*env)->NewGlobalRef(env, sclass_java_InputStream);
   202  		m_java_InputStream_read__ = go_seq_get_method_id(clazz, "read", "()I");
   203  		sm_java_InputStream_read__ = go_seq_get_method_id(sclass_java_InputStream, "read", "()I");
   204  		m_java_InputStream_read___3B = go_seq_get_method_id(clazz, "read", "([B)I");
   205  		sm_java_InputStream_read___3B = go_seq_get_method_id(sclass_java_InputStream, "read", "([B)I");
   206  		m_java_InputStream_read___3BII = go_seq_get_method_id(clazz, "read", "([BII)I");
   207  		sm_java_InputStream_read___3BII = go_seq_get_method_id(sclass_java_InputStream, "read", "([BII)I");
   208  		m_java_InputStream_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
   209  		sm_java_InputStream_toString = go_seq_get_method_id(sclass_java_InputStream, "toString", "()Ljava/lang/String;");
   210  	}
   211  	clazz = go_seq_find_class("java/Object");
   212  	if (clazz != NULL) {
   213  		class_java_Object = (*env)->NewGlobalRef(env, clazz);
   214  		sclass_java_Object = (*env)->GetSuperclass(env, clazz);
   215  		sclass_java_Object = (*env)->NewGlobalRef(env, sclass_java_Object);
   216  		m_java_Object_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
   217  		sm_java_Object_toString = go_seq_get_method_id(sclass_java_Object, "toString", "()Ljava/lang/String;");
   218  	}
   219  	clazz = go_seq_find_class("java/Runnable");
   220  	if (clazz != NULL) {
   221  		class_java_Runnable = (*env)->NewGlobalRef(env, clazz);
   222  		sclass_java_Runnable = (*env)->GetSuperclass(env, clazz);
   223  		sclass_java_Runnable = (*env)->NewGlobalRef(env, sclass_java_Runnable);
   224  		m_java_Runnable_run = go_seq_get_method_id(clazz, "run", "()V");
   225  		sm_java_Runnable_run = go_seq_get_method_id(sclass_java_Runnable, "run", "()V");
   226  	}
   227  	clazz = go_seq_find_class("java/util/Iterator");
   228  	if (clazz != NULL) {
   229  		class_java_util_Iterator = (*env)->NewGlobalRef(env, clazz);
   230  	}
   231  	clazz = go_seq_find_class("java/util/Spliterator");
   232  	if (clazz != NULL) {
   233  		class_java_util_Spliterator = (*env)->NewGlobalRef(env, clazz);
   234  	}
   235  	clazz = go_seq_find_class("java/util/PrimitiveIterator$OfInt");
   236  	if (clazz != NULL) {
   237  		class_java_util_PrimitiveIterator_OfInt = (*env)->NewGlobalRef(env, clazz);
   238  	}
   239  	clazz = go_seq_find_class("java/util/Spliterator$OfInt");
   240  	if (clazz != NULL) {
   241  		class_java_util_Spliterator_OfInt = (*env)->NewGlobalRef(env, clazz);
   242  	}
   243  	clazz = go_seq_find_class("java/util/PrimitiveIterator$OfLong");
   244  	if (clazz != NULL) {
   245  		class_java_util_PrimitiveIterator_OfLong = (*env)->NewGlobalRef(env, clazz);
   246  	}
   247  	clazz = go_seq_find_class("java/util/Spliterator$OfLong");
   248  	if (clazz != NULL) {
   249  		class_java_util_Spliterator_OfLong = (*env)->NewGlobalRef(env, clazz);
   250  	}
   251  	clazz = go_seq_find_class("java/util/PrimitiveIterator$OfDouble");
   252  	if (clazz != NULL) {
   253  		class_java_util_PrimitiveIterator_OfDouble = (*env)->NewGlobalRef(env, clazz);
   254  	}
   255  	clazz = go_seq_find_class("java/util/Spliterator$OfDouble");
   256  	if (clazz != NULL) {
   257  		class_java_util_Spliterator_OfDouble = (*env)->NewGlobalRef(env, clazz);
   258  	}
   259  	clazz = go_seq_find_class("java/io/Console");
   260  	if (clazz != NULL) {
   261  		class_java_io_Console = (*env)->NewGlobalRef(env, clazz);
   262  		m_java_io_Console_flush = go_seq_get_method_id(clazz, "flush", "()V");
   263  		m_java_io_Console_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
   264  	}
   265  	go_seq_pop_local_frame(env);
   266  }
   267  
   268  jint cproxy_java_lang_Runnable_run(jint this) {
   269  	JNIEnv *env = go_seq_push_local_frame(1);
   270  	// Must be a Java object
   271  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   272  	(*env)->CallVoidMethod(env, _this, m_java_lang_Runnable_run);
   273  	jobject _exc = go_seq_get_exception(env);
   274  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   275  	go_seq_pop_local_frame(env);
   276  	return _exc_ref;
   277  }
   278  
   279  ret_jint cproxy_java_io_InputStream_read__(jint this) {
   280  	JNIEnv *env = go_seq_push_local_frame(1);
   281  	// Must be a Java object
   282  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   283  	jint res = (*env)->CallIntMethod(env, _this, m_java_io_InputStream_read__);
   284  	jobject _exc = go_seq_get_exception(env);
   285  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   286  	if (_exc != NULL) {
   287  		res = 0;
   288  	}
   289  	jint _res = res;
   290  	go_seq_pop_local_frame(env);
   291  	ret_jint __res = {_res, _exc_ref};
   292  	return __res;
   293  }
   294  
   295  ret_jint cproxy_java_io_InputStream_read___3B(jint this, nbyteslice a0) {
   296  	JNIEnv *env = go_seq_push_local_frame(2);
   297  	// Must be a Java object
   298  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   299  	jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
   300  	jint res = (*env)->CallIntMethod(env, _this, m_java_io_InputStream_read___3B, _a0);
   301  	jobject _exc = go_seq_get_exception(env);
   302  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   303  	if (_exc != NULL) {
   304  		res = 0;
   305  	}
   306  	jint _res = res;
   307  	go_seq_pop_local_frame(env);
   308  	ret_jint __res = {_res, _exc_ref};
   309  	return __res;
   310  }
   311  
   312  ret_jint cproxy_java_io_InputStream_read___3BII(jint this, nbyteslice a0, jint a1, jint a2) {
   313  	JNIEnv *env = go_seq_push_local_frame(4);
   314  	// Must be a Java object
   315  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   316  	jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
   317  	jint _a1 = a1;
   318  	jint _a2 = a2;
   319  	jint res = (*env)->CallIntMethod(env, _this, m_java_io_InputStream_read___3BII, _a0, _a1, _a2);
   320  	jobject _exc = go_seq_get_exception(env);
   321  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   322  	if (_exc != NULL) {
   323  		res = 0;
   324  	}
   325  	jint _res = res;
   326  	go_seq_pop_local_frame(env);
   327  	ret_jint __res = {_res, _exc_ref};
   328  	return __res;
   329  }
   330  
   331  ret_nstring cproxy_java_io_InputStream_toString(jint this) {
   332  	JNIEnv *env = go_seq_push_local_frame(1);
   333  	// Must be a Java object
   334  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   335  	jstring res = (*env)->CallObjectMethod(env, _this, m_java_io_InputStream_toString);
   336  	jobject _exc = go_seq_get_exception(env);
   337  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   338  	if (_exc != NULL) {
   339  		res = NULL;
   340  	}
   341  	nstring _res = go_seq_from_java_string(env, res);
   342  	go_seq_pop_local_frame(env);
   343  	ret_nstring __res = {_res, _exc_ref};
   344  	return __res;
   345  }
   346  
   347  ret_jint cproxy_java_util_concurrent_Future_get__(jint this) {
   348  	JNIEnv *env = go_seq_push_local_frame(1);
   349  	// Must be a Java object
   350  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   351  	jobject res = (*env)->CallObjectMethod(env, _this, m_java_util_concurrent_Future_get__);
   352  	jobject _exc = go_seq_get_exception(env);
   353  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   354  	if (_exc != NULL) {
   355  		res = NULL;
   356  	}
   357  	jint _res = go_seq_to_refnum(env, res);
   358  	go_seq_pop_local_frame(env);
   359  	ret_jint __res = {_res, _exc_ref};
   360  	return __res;
   361  }
   362  
   363  ret_jint cproxy_java_util_concurrent_Future_get__JLjava_util_concurrent_TimeUnit_2(jint this, jlong a0, jint a1) {
   364  	JNIEnv *env = go_seq_push_local_frame(3);
   365  	// Must be a Java object
   366  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   367  	jlong _a0 = a0;
   368  	jobject _a1 = go_seq_from_refnum(env, a1, NULL, NULL);
   369  	jobject res = (*env)->CallObjectMethod(env, _this, m_java_util_concurrent_Future_get__JLjava_util_concurrent_TimeUnit_2, _a0, _a1);
   370  	jobject _exc = go_seq_get_exception(env);
   371  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   372  	if (_exc != NULL) {
   373  		res = NULL;
   374  	}
   375  	jint _res = go_seq_to_refnum(env, res);
   376  	go_seq_pop_local_frame(env);
   377  	ret_jint __res = {_res, _exc_ref};
   378  	return __res;
   379  }
   380  
   381  ret_nstring cproxy_java_lang_Object_toString(jint this) {
   382  	JNIEnv *env = go_seq_push_local_frame(1);
   383  	// Must be a Java object
   384  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   385  	jstring res = (*env)->CallObjectMethod(env, _this, m_java_lang_Object_toString);
   386  	jobject _exc = go_seq_get_exception(env);
   387  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   388  	if (_exc != NULL) {
   389  		res = NULL;
   390  	}
   391  	nstring _res = go_seq_from_java_string(env, res);
   392  	go_seq_pop_local_frame(env);
   393  	ret_nstring __res = {_res, _exc_ref};
   394  	return __res;
   395  }
   396  
   397  ret_nstring cproxy_java_util_concurrent_TimeUnit_toString(jint this) {
   398  	JNIEnv *env = go_seq_push_local_frame(1);
   399  	// Must be a Java object
   400  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   401  	jstring res = (*env)->CallObjectMethod(env, _this, m_java_util_concurrent_TimeUnit_toString);
   402  	jobject _exc = go_seq_get_exception(env);
   403  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   404  	if (_exc != NULL) {
   405  		res = NULL;
   406  	}
   407  	nstring _res = go_seq_from_java_string(env, res);
   408  	go_seq_pop_local_frame(env);
   409  	ret_nstring __res = {_res, _exc_ref};
   410  	return __res;
   411  }
   412  
   413  ret_nstring cproxy_java_util_Spliterators_toString(jint this) {
   414  	JNIEnv *env = go_seq_push_local_frame(1);
   415  	// Must be a Java object
   416  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   417  	jstring res = (*env)->CallObjectMethod(env, _this, m_java_util_Spliterators_toString);
   418  	jobject _exc = go_seq_get_exception(env);
   419  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   420  	if (_exc != NULL) {
   421  		res = NULL;
   422  	}
   423  	nstring _res = go_seq_from_java_string(env, res);
   424  	go_seq_pop_local_frame(env);
   425  	ret_nstring __res = {_res, _exc_ref};
   426  	return __res;
   427  }
   428  
   429  ret_nstring cproxy_java_lang_System_toString(jint this) {
   430  	JNIEnv *env = go_seq_push_local_frame(1);
   431  	// Must be a Java object
   432  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   433  	jstring res = (*env)->CallObjectMethod(env, _this, m_java_lang_System_toString);
   434  	jobject _exc = go_seq_get_exception(env);
   435  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   436  	if (_exc != NULL) {
   437  		res = NULL;
   438  	}
   439  	nstring _res = go_seq_from_java_string(env, res);
   440  	go_seq_pop_local_frame(env);
   441  	ret_nstring __res = {_res, _exc_ref};
   442  	return __res;
   443  }
   444  
   445  ret_jint cproxy_java_Future_get__(jint this) {
   446  	JNIEnv *env = go_seq_push_local_frame(1);
   447  	// Must be a Java object
   448  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   449  	jobject res = (*env)->CallObjectMethod(env, _this, m_java_Future_get__);
   450  	jobject _exc = go_seq_get_exception(env);
   451  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   452  	if (_exc != NULL) {
   453  		res = NULL;
   454  	}
   455  	jint _res = go_seq_to_refnum(env, res);
   456  	go_seq_pop_local_frame(env);
   457  	ret_jint __res = {_res, _exc_ref};
   458  	return __res;
   459  }
   460  
   461  ret_jint csuper_java_Future_get__(jint this) {
   462  	JNIEnv *env = go_seq_push_local_frame(1);
   463  	// Must be a Java object
   464  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   465  	jobject res = (*env)->CallNonvirtualObjectMethod(env, _this, sclass_java_Future, sm_java_Future_get__);
   466  	jobject _exc = go_seq_get_exception(env);
   467  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   468  	if (_exc != NULL) {
   469  		res = NULL;
   470  	}
   471  	jint _res = go_seq_to_refnum(env, res);
   472  	go_seq_pop_local_frame(env);
   473  	ret_jint __res = {_res, _exc_ref};
   474  	return __res;
   475  }
   476  
   477  ret_jint cproxy_java_Future_get__JLjava_util_concurrent_TimeUnit_2(jint this, jlong a0, jint a1) {
   478  	JNIEnv *env = go_seq_push_local_frame(3);
   479  	// Must be a Java object
   480  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   481  	jlong _a0 = a0;
   482  	jobject _a1 = go_seq_from_refnum(env, a1, NULL, NULL);
   483  	jobject res = (*env)->CallObjectMethod(env, _this, m_java_Future_get__JLjava_util_concurrent_TimeUnit_2, _a0, _a1);
   484  	jobject _exc = go_seq_get_exception(env);
   485  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   486  	if (_exc != NULL) {
   487  		res = NULL;
   488  	}
   489  	jint _res = go_seq_to_refnum(env, res);
   490  	go_seq_pop_local_frame(env);
   491  	ret_jint __res = {_res, _exc_ref};
   492  	return __res;
   493  }
   494  
   495  ret_jint csuper_java_Future_get__JLjava_util_concurrent_TimeUnit_2(jint this, jlong a0, jint a1) {
   496  	JNIEnv *env = go_seq_push_local_frame(3);
   497  	// Must be a Java object
   498  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   499  	jlong _a0 = a0;
   500  	jobject _a1 = go_seq_from_refnum(env, a1, NULL, NULL);
   501  	jobject res = (*env)->CallNonvirtualObjectMethod(env, _this, sclass_java_Future, sm_java_Future_get__JLjava_util_concurrent_TimeUnit_2, _a0, _a1);
   502  	jobject _exc = go_seq_get_exception(env);
   503  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   504  	if (_exc != NULL) {
   505  		res = NULL;
   506  	}
   507  	jint _res = go_seq_to_refnum(env, res);
   508  	go_seq_pop_local_frame(env);
   509  	ret_jint __res = {_res, _exc_ref};
   510  	return __res;
   511  }
   512  
   513  ret_jint cproxy_java_InputStream_read__(jint this) {
   514  	JNIEnv *env = go_seq_push_local_frame(1);
   515  	// Must be a Java object
   516  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   517  	jint res = (*env)->CallIntMethod(env, _this, m_java_InputStream_read__);
   518  	jobject _exc = go_seq_get_exception(env);
   519  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   520  	if (_exc != NULL) {
   521  		res = 0;
   522  	}
   523  	jint _res = res;
   524  	go_seq_pop_local_frame(env);
   525  	ret_jint __res = {_res, _exc_ref};
   526  	return __res;
   527  }
   528  
   529  ret_jint csuper_java_InputStream_read__(jint this) {
   530  	JNIEnv *env = go_seq_push_local_frame(1);
   531  	// Must be a Java object
   532  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   533  	jint res = (*env)->CallNonvirtualIntMethod(env, _this, sclass_java_InputStream, sm_java_InputStream_read__);
   534  	jobject _exc = go_seq_get_exception(env);
   535  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   536  	if (_exc != NULL) {
   537  		res = 0;
   538  	}
   539  	jint _res = res;
   540  	go_seq_pop_local_frame(env);
   541  	ret_jint __res = {_res, _exc_ref};
   542  	return __res;
   543  }
   544  
   545  ret_jint cproxy_java_InputStream_read___3B(jint this, nbyteslice a0) {
   546  	JNIEnv *env = go_seq_push_local_frame(2);
   547  	// Must be a Java object
   548  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   549  	jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
   550  	jint res = (*env)->CallIntMethod(env, _this, m_java_InputStream_read___3B, _a0);
   551  	jobject _exc = go_seq_get_exception(env);
   552  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   553  	if (_exc != NULL) {
   554  		res = 0;
   555  	}
   556  	jint _res = res;
   557  	go_seq_pop_local_frame(env);
   558  	ret_jint __res = {_res, _exc_ref};
   559  	return __res;
   560  }
   561  
   562  ret_jint csuper_java_InputStream_read___3B(jint this, nbyteslice a0) {
   563  	JNIEnv *env = go_seq_push_local_frame(2);
   564  	// Must be a Java object
   565  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   566  	jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
   567  	jint res = (*env)->CallNonvirtualIntMethod(env, _this, sclass_java_InputStream, sm_java_InputStream_read___3B, _a0);
   568  	jobject _exc = go_seq_get_exception(env);
   569  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   570  	if (_exc != NULL) {
   571  		res = 0;
   572  	}
   573  	jint _res = res;
   574  	go_seq_pop_local_frame(env);
   575  	ret_jint __res = {_res, _exc_ref};
   576  	return __res;
   577  }
   578  
   579  ret_jint cproxy_java_InputStream_read___3BII(jint this, nbyteslice a0, jint a1, jint a2) {
   580  	JNIEnv *env = go_seq_push_local_frame(4);
   581  	// Must be a Java object
   582  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   583  	jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
   584  	jint _a1 = a1;
   585  	jint _a2 = a2;
   586  	jint res = (*env)->CallIntMethod(env, _this, m_java_InputStream_read___3BII, _a0, _a1, _a2);
   587  	jobject _exc = go_seq_get_exception(env);
   588  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   589  	if (_exc != NULL) {
   590  		res = 0;
   591  	}
   592  	jint _res = res;
   593  	go_seq_pop_local_frame(env);
   594  	ret_jint __res = {_res, _exc_ref};
   595  	return __res;
   596  }
   597  
   598  ret_jint csuper_java_InputStream_read___3BII(jint this, nbyteslice a0, jint a1, jint a2) {
   599  	JNIEnv *env = go_seq_push_local_frame(4);
   600  	// Must be a Java object
   601  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   602  	jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
   603  	jint _a1 = a1;
   604  	jint _a2 = a2;
   605  	jint res = (*env)->CallNonvirtualIntMethod(env, _this, sclass_java_InputStream, sm_java_InputStream_read___3BII, _a0, _a1, _a2);
   606  	jobject _exc = go_seq_get_exception(env);
   607  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   608  	if (_exc != NULL) {
   609  		res = 0;
   610  	}
   611  	jint _res = res;
   612  	go_seq_pop_local_frame(env);
   613  	ret_jint __res = {_res, _exc_ref};
   614  	return __res;
   615  }
   616  
   617  ret_nstring cproxy_java_InputStream_toString(jint this) {
   618  	JNIEnv *env = go_seq_push_local_frame(1);
   619  	// Must be a Java object
   620  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   621  	jstring res = (*env)->CallObjectMethod(env, _this, m_java_InputStream_toString);
   622  	jobject _exc = go_seq_get_exception(env);
   623  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   624  	if (_exc != NULL) {
   625  		res = NULL;
   626  	}
   627  	nstring _res = go_seq_from_java_string(env, res);
   628  	go_seq_pop_local_frame(env);
   629  	ret_nstring __res = {_res, _exc_ref};
   630  	return __res;
   631  }
   632  
   633  ret_nstring csuper_java_InputStream_toString(jint this) {
   634  	JNIEnv *env = go_seq_push_local_frame(1);
   635  	// Must be a Java object
   636  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   637  	jstring res = (*env)->CallNonvirtualObjectMethod(env, _this, sclass_java_InputStream, sm_java_InputStream_toString);
   638  	jobject _exc = go_seq_get_exception(env);
   639  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   640  	if (_exc != NULL) {
   641  		res = NULL;
   642  	}
   643  	nstring _res = go_seq_from_java_string(env, res);
   644  	go_seq_pop_local_frame(env);
   645  	ret_nstring __res = {_res, _exc_ref};
   646  	return __res;
   647  }
   648  
   649  ret_nstring cproxy_java_Object_toString(jint this) {
   650  	JNIEnv *env = go_seq_push_local_frame(1);
   651  	// Must be a Java object
   652  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   653  	jstring res = (*env)->CallObjectMethod(env, _this, m_java_Object_toString);
   654  	jobject _exc = go_seq_get_exception(env);
   655  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   656  	if (_exc != NULL) {
   657  		res = NULL;
   658  	}
   659  	nstring _res = go_seq_from_java_string(env, res);
   660  	go_seq_pop_local_frame(env);
   661  	ret_nstring __res = {_res, _exc_ref};
   662  	return __res;
   663  }
   664  
   665  ret_nstring csuper_java_Object_toString(jint this) {
   666  	JNIEnv *env = go_seq_push_local_frame(1);
   667  	// Must be a Java object
   668  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   669  	jstring res = (*env)->CallNonvirtualObjectMethod(env, _this, sclass_java_Object, sm_java_Object_toString);
   670  	jobject _exc = go_seq_get_exception(env);
   671  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   672  	if (_exc != NULL) {
   673  		res = NULL;
   674  	}
   675  	nstring _res = go_seq_from_java_string(env, res);
   676  	go_seq_pop_local_frame(env);
   677  	ret_nstring __res = {_res, _exc_ref};
   678  	return __res;
   679  }
   680  
   681  jint cproxy_java_Runnable_run(jint this) {
   682  	JNIEnv *env = go_seq_push_local_frame(1);
   683  	// Must be a Java object
   684  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   685  	(*env)->CallVoidMethod(env, _this, m_java_Runnable_run);
   686  	jobject _exc = go_seq_get_exception(env);
   687  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   688  	go_seq_pop_local_frame(env);
   689  	return _exc_ref;
   690  }
   691  
   692  jint csuper_java_Runnable_run(jint this) {
   693  	JNIEnv *env = go_seq_push_local_frame(1);
   694  	// Must be a Java object
   695  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   696  	(*env)->CallNonvirtualVoidMethod(env, _this, sclass_java_Runnable, sm_java_Runnable_run);
   697  	jobject _exc = go_seq_get_exception(env);
   698  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   699  	go_seq_pop_local_frame(env);
   700  	return _exc_ref;
   701  }
   702  
   703  jint cproxy_java_io_Console_flush(jint this) {
   704  	JNIEnv *env = go_seq_push_local_frame(1);
   705  	// Must be a Java object
   706  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   707  	(*env)->CallVoidMethod(env, _this, m_java_io_Console_flush);
   708  	jobject _exc = go_seq_get_exception(env);
   709  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   710  	go_seq_pop_local_frame(env);
   711  	return _exc_ref;
   712  }
   713  
   714  ret_nstring cproxy_java_io_Console_toString(jint this) {
   715  	JNIEnv *env = go_seq_push_local_frame(1);
   716  	// Must be a Java object
   717  	jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
   718  	jstring res = (*env)->CallObjectMethod(env, _this, m_java_io_Console_toString);
   719  	jobject _exc = go_seq_get_exception(env);
   720  	int32_t _exc_ref = go_seq_to_refnum(env, _exc);
   721  	if (_exc != NULL) {
   722  		res = NULL;
   723  	}
   724  	nstring _res = go_seq_from_java_string(env, res);
   725  	go_seq_pop_local_frame(env);
   726  	ret_nstring __res = {_res, _exc_ref};
   727  	return __res;
   728  }
   729  
   730  // JNI functions for the Go <=> Java bridge.
   731  //   gobind -lang=java classes
   732  //
   733  // File is generated by gobind. Do not edit.
   734  
   735  #include <android/log.h>
   736  #include <stdint.h>
   737  #include "seq.h"
   738  #include "_cgo_export.h"
   739  #include "java.h"
   740  
   741  jclass proxy_class_java_Future;
   742  jmethodID proxy_class_java_Future_cons;
   743  jclass proxy_class_java_InputStream;
   744  jmethodID proxy_class_java_InputStream_cons;
   745  jclass proxy_class_java_Object;
   746  jmethodID proxy_class_java_Object_cons;
   747  jclass proxy_class_java_Runnable;
   748  jmethodID proxy_class_java_Runnable_cons;
   749  
   750  JNIEXPORT void JNICALL
   751  Java_java_Java__1init(JNIEnv *env, jclass _unused) {
   752      jclass clazz;
   753      clazz = (*env)->FindClass(env, "java/Future");
   754      proxy_class_java_Future = (*env)->NewGlobalRef(env, clazz);
   755      proxy_class_java_Future_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V");
   756      clazz = (*env)->FindClass(env, "java/Object");
   757      proxy_class_java_Object = (*env)->NewGlobalRef(env, clazz);
   758      proxy_class_java_Object_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V");
   759      clazz = (*env)->FindClass(env, "java/Runnable");
   760      proxy_class_java_Runnable = (*env)->NewGlobalRef(env, clazz);
   761      proxy_class_java_Runnable_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V");
   762  }
   763  
   764  JNIEXPORT jobject JNICALL
   765  Java_java_Java_newInputStream(JNIEnv* env, jclass _clazz) {
   766      int32_t r0 = proxyjava__NewInputStream();
   767      jobject _r0 = go_seq_from_refnum(env, r0, proxy_class_java_InputStream, proxy_class_java_InputStream_cons);
   768      return _r0;
   769  }
   770  
   771  JNIEXPORT jint JNICALL
   772  Java_java_Future__1_1New(JNIEnv *env, jclass clazz) {
   773      return new_java_Future();
   774  }
   775  
   776  JNIEXPORT jobject JNICALL
   777  Java_java_Future_get__(JNIEnv* env, jobject __this__) {
   778      int32_t o = go_seq_to_refnum_go(env, __this__);
   779      struct proxyjava_Future_Get_return res = proxyjava_Future_Get(o);
   780      jobject _r0 = go_seq_from_refnum(env, res.r0, NULL, NULL);
   781      jobject _r1 = go_seq_from_refnum(env, res.r1, proxy_class__error, proxy_class__error_cons);
   782      go_seq_maybe_throw_exception(env, _r1);
   783      return _r0;
   784  }
   785  
   786  JNIEXPORT jobject JNICALL
   787  Java_java_Future_get__JLjava_util_concurrent_TimeUnit_2(JNIEnv* env, jobject __this__, jlong p0, jobject p1) {
   788      int32_t o = go_seq_to_refnum_go(env, __this__);
   789      int64_t _p0 = (int64_t)p0;
   790      int32_t _p1 = go_seq_to_refnum(env, p1);
   791      struct proxyjava_Future_Get__return res = proxyjava_Future_Get_(o, _p0, _p1);
   792      jobject _r0 = go_seq_from_refnum(env, res.r0, NULL, NULL);
   793      jobject _r1 = go_seq_from_refnum(env, res.r1, proxy_class__error, proxy_class__error_cons);
   794      go_seq_maybe_throw_exception(env, _r1);
   795      return _r0;
   796  }
   797  
   798  JNIEXPORT void JNICALL
   799  Java_java_Future_setFuture(JNIEnv *env, jobject this, jobject v) {
   800      int32_t o = go_seq_to_refnum_go(env, this);
   801      int32_t _v = go_seq_to_refnum(env, v);
   802      proxyjava_Future_Future_Set(o, _v);
   803  }
   804  
   805  JNIEXPORT jobject JNICALL
   806  Java_java_Future_getFuture(JNIEnv *env, jobject this) {
   807      int32_t o = go_seq_to_refnum_go(env, this);
   808      int32_t r0 = proxyjava_Future_Future_Get(o);
   809      jobject _r0 = go_seq_from_refnum(env, r0, NULL, NULL);
   810      return _r0;
   811  }
   812  
   813  JNIEXPORT jint JNICALL
   814  Java_java_InputStream__1_1NewInputStream(JNIEnv *env, jclass clazz) {
   815      int32_t refnum = proxyjava__NewInputStream();
   816      return refnum;
   817  }
   818  
   819  JNIEXPORT jint JNICALL
   820  Java_java_InputStream_read__(JNIEnv* env, jobject __this__) {
   821      int32_t o = go_seq_to_refnum_go(env, __this__);
   822      struct proxyjava_InputStream_Read_return res = proxyjava_InputStream_Read(o);
   823      jint _r0 = (jint)res.r0;
   824      jobject _r1 = go_seq_from_refnum(env, res.r1, proxy_class__error, proxy_class__error_cons);
   825      go_seq_maybe_throw_exception(env, _r1);
   826      return _r0;
   827  }
   828  
   829  JNIEXPORT void JNICALL
   830  Java_java_InputStream_setInputStream(JNIEnv *env, jobject this, jobject v) {
   831      int32_t o = go_seq_to_refnum_go(env, this);
   832      int32_t _v = go_seq_to_refnum(env, v);
   833      proxyjava_InputStream_InputStream_Set(o, _v);
   834  }
   835  
   836  JNIEXPORT jobject JNICALL
   837  Java_java_InputStream_getInputStream(JNIEnv *env, jobject this) {
   838      int32_t o = go_seq_to_refnum_go(env, this);
   839      int32_t r0 = proxyjava_InputStream_InputStream_Get(o);
   840      jobject _r0 = go_seq_from_refnum(env, r0, NULL, NULL);
   841      return _r0;
   842  }
   843  
   844  JNIEXPORT jint JNICALL
   845  Java_java_Object__1_1New(JNIEnv *env, jclass clazz) {
   846      return new_java_Object();
   847  }
   848  
   849  JNIEXPORT void JNICALL
   850  Java_java_Object_setObject(JNIEnv *env, jobject this, jobject v) {
   851      int32_t o = go_seq_to_refnum_go(env, this);
   852      int32_t _v = go_seq_to_refnum(env, v);
   853      proxyjava_Object_Object_Set(o, _v);
   854  }
   855  
   856  JNIEXPORT jobject JNICALL
   857  Java_java_Object_getObject(JNIEnv *env, jobject this) {
   858      int32_t o = go_seq_to_refnum_go(env, this);
   859      int32_t r0 = proxyjava_Object_Object_Get(o);
   860      jobject _r0 = go_seq_from_refnum(env, r0, NULL, NULL);
   861      return _r0;
   862  }
   863  
   864  JNIEXPORT jint JNICALL
   865  Java_java_Runnable__1_1New(JNIEnv *env, jclass clazz) {
   866      return new_java_Runnable();
   867  }
   868  
   869  JNIEXPORT void JNICALL
   870  Java_java_Runnable_run(JNIEnv* env, jobject __this__) {
   871      int32_t o = go_seq_to_refnum_go(env, __this__);
   872      int32_t _this_ = go_seq_to_refnum(env, __this__);
   873      proxyjava_Runnable_Run(o, _this_);
   874  }
   875  
   876  JNIEXPORT void JNICALL
   877  Java_java_Runnable_setRunnable(JNIEnv *env, jobject this, jobject v) {
   878      int32_t o = go_seq_to_refnum_go(env, this);
   879      int32_t _v = go_seq_to_refnum(env, v);
   880      proxyjava_Runnable_Runnable_Set(o, _v);
   881  }
   882  
   883  JNIEXPORT jobject JNICALL
   884  Java_java_Runnable_getRunnable(JNIEnv *env, jobject this) {
   885      int32_t o = go_seq_to_refnum_go(env, this);
   886      int32_t r0 = proxyjava_Runnable_Runnable_Get(o);
   887      jobject _r0 = go_seq_from_refnum(env, r0, NULL, NULL);
   888      return _r0;
   889  }
   890