方法签名的格式为:(形参参数类型列表)返回值。
形参参数列表中,引用类型以L开头,后面紧跟类的全路径名(需将.全部替换成/),以分号结尾。
public native static byte test3_();
方法签名:()B
public native static void test(boolean b, byte be, short s, int i,
long ll, float f, double d);
方法签名:(ZBSIJFD)V
public native static String test2x(int errorCode,String errorMsg);
方法签名:(ILjava/lang/String;)Ljava/lang/String;
demo:
package com.xxx.dbl;
public class Data {
public native static void test(boolean b, byte be, short s, int i,
long ll, float f, double d);
public native static String test2x(int errorCode,String errorMsg);
///
public native static byte test3_();
public native