Index: base/android/jni_generator/jni_generator.py |
diff --git a/base/android/jni_generator/jni_generator.py b/base/android/jni_generator/jni_generator.py |
index 54fea6babfb2299c8d7714ef65edbdea348ea1f0..3182036cd00cdec530646638099282efba5af90b 100755 |
--- a/base/android/jni_generator/jni_generator.py |
+++ b/base/android/jni_generator/jni_generator.py |
@@ -1073,8 +1073,10 @@ static ${RETURN} ${NAME}(JNIEnv* env, ${PARAMS}); |
""" |
if self.options.native_exports: |
template_str += """ |
-__attribute__((visibility("default"), alias("${NAME}"))) |
-${RETURN} ${STUB_NAME}(JNIEnv* env, ${PARAMS}); |
+__attribute__((visibility("default"))) |
+${RETURN} ${STUB_NAME}(JNIEnv* env, ${PARAMS}) { |
+ return ${NAME}(${PARAMS_IN_CALL}); |
+} |
""" |
template = Template(template_str) |
params_in_call = [] |