github.com/F4RD1N/gomobile@v1.0.1/bind/testdata/classes.java.c.golden (about)

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