зеркало из https://github.com/mozilla/gecko-dev.git
Changed some filenames to set it size to 31 ( MacOS restriction)
AlteredMakefiles Changed Test File List changed test cases to reflect status as described in bug 39050
This commit is contained in:
Родитель
02d34752cd
Коммит
1dc4d7cc63
|
@ -191,6 +191,8 @@ sub constructHTMLBody() {
|
|||
close( MYLOG );
|
||||
|
||||
my $line;
|
||||
my $f_cnt = 0;
|
||||
my $p_cnt = 0;
|
||||
foreach $line ( sort @all_lines ) {
|
||||
# avoid linebreaks
|
||||
chop $line;
|
||||
|
@ -203,13 +205,18 @@ sub constructHTMLBody() {
|
|||
if ($status =~ /(.*?) \((.*?)\)$/) {
|
||||
$status = $1;
|
||||
$comment = $2 ? $2 : "---";
|
||||
$p_cnt++;
|
||||
}
|
||||
if ($status =~ /FAIL/) {
|
||||
$status = "<font color=\"red\">".$status;
|
||||
$status = $status."<\/font>";
|
||||
$f_cnt++;
|
||||
}
|
||||
print LOGHTML "<tr><td><a target=\"$TARGET_WINDOW\" href=\"$TEST_DESCRIPTIONS#$class\">",$class,"</a></td><td>",$status,"</td><td>",$comment,"</td></tr>\n";
|
||||
}
|
||||
my $pp = sprintf "%.2f", $p_cnt/($p_cnt+$f_cnt)*100;
|
||||
my $pf = sprintf "%.2f", $f_cnt/($p_cnt+$f_cnt)*100;
|
||||
print LOGHTML "<tr><td colspan=3>Total: $p_cnt($pp\%) tests passed and $f_cnt($pf\%) tests failed.</td></tr>\n";
|
||||
}
|
||||
|
||||
#########################################################################
|
||||
|
|
|
@ -52,23 +52,6 @@
|
|||
printf("ID of static %s method = %d\n", func_name, (int)MethodID);
|
||||
|
||||
|
||||
#ifdef XP_UNIX
|
||||
#define MAX_JLONG jlong_MAXINT // from jri_md.h
|
||||
#define MIN_JLONG jlong_MININT
|
||||
#else
|
||||
#define MAX_JLONG 9223372036854775807
|
||||
#define MIN_JLONG -9223372036854775808
|
||||
#endif
|
||||
|
||||
#define MAX_JINT (jint)2147483647
|
||||
#define MIN_JINT (jint)-2147483648
|
||||
#define MAX_JDOUBLE (jdouble)1.7976931348623157e308
|
||||
#define MIN_JDOUBLE (jdouble)4.9e-324
|
||||
#define MAX_JBYTE (jbyte)255
|
||||
#define MIN_JBYTE (jbyte)-256
|
||||
#define MAX_JFLOAT (jfloat)3.4028235e38
|
||||
#define MIN_JFLOAT (jfloat)1.4e-45
|
||||
#define MAX_JSHORT (jshort)32767
|
||||
#define MIN_JSHORT (jshort)-32768
|
||||
|
||||
#endif //AccessingFields_h___
|
||||
|
|
|
@ -45,21 +45,3 @@
|
|||
jmethodID MethodID = env->GetStaticMethodID(clazz, func_name, returnType);\
|
||||
printf("ID of static %s method = %d\n", func_name, (int)MethodID);
|
||||
|
||||
#ifdef XP_UNIX
|
||||
#define MAX_JLONG jlong_MAXINT // from jri_md.h
|
||||
#define MIN_JLONG jlong_MININT
|
||||
#else
|
||||
#define MAX_JLONG 9223372036854775807
|
||||
#define MIN_JLONG -9223372036854775808
|
||||
#endif
|
||||
|
||||
#define MAX_JINT 2147483647
|
||||
#define MIN_JINT -2147483648
|
||||
#define MAX_JDOUBLE 1.7976931348623157e308
|
||||
#define MIN_JDOUBLE 4.9e-324
|
||||
#define MAX_JBYTE 255
|
||||
#define MIN_JBYTE -256
|
||||
#define MAX_JFLOAT 3.4028235e38
|
||||
#define MIN_JFLOAT 1.4e-45
|
||||
#define MAX_JSHORT 32767
|
||||
#define MIN_JSHORT -32768
|
||||
|
|
|
@ -18,21 +18,3 @@
|
|||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
#ifdef XP_UNIX
|
||||
#define MAX_JDOUBLE jlong_MAXINT
|
||||
#define MIN_JDOUBLE jlong_MININT
|
||||
#else
|
||||
#define MAX_JDOUBLE 0x7FEFFFFFFFFFFFFFL
|
||||
#define MIN_JDOUBLE 0x1L
|
||||
#endif
|
||||
|
||||
#define MAX_JINT 2147483647
|
||||
#define MIN_JINT -2147483648
|
||||
#define MAX_JBYTE 2
|
||||
#define MIN_JBYTE -2
|
||||
#define MAX_JFLOAT 1
|
||||
#define MIN_JFLOAT 0
|
||||
#define MAX_JLONG 1
|
||||
#define MIN_JLONG 0
|
||||
#define MAX_JSHORT 1
|
||||
#define MIN_JSHORT 0
|
||||
|
|
|
@ -93,18 +93,18 @@ CPP = \
|
|||
NewShortArray_1.cpp \
|
||||
NewShortArray_2.cpp \
|
||||
NewShortArray_3.cpp \
|
||||
ReleaseBooleanArrayElements_1.cpp \
|
||||
ReleaseBooleanArrayElements_2.cpp \
|
||||
ReleaseBooleanArrayElements_3.cpp \
|
||||
ReleaseBoolArrayElems_1.cpp \
|
||||
ReleaseBoolArrayElems_2.cpp \
|
||||
ReleaseBoolArrayElems_3.cpp \
|
||||
ReleaseByteArrayElements_1.cpp \
|
||||
ReleaseByteArrayElements_2.cpp \
|
||||
ReleaseByteArrayElements_3.cpp \
|
||||
ReleaseCharArrayElements_1.cpp \
|
||||
ReleaseCharArrayElements_2.cpp \
|
||||
ReleaseCharArrayElements_3.cpp \
|
||||
ReleaseDoubleArrayElements_1.cpp \
|
||||
ReleaseDoubleArrayElements_2.cpp \
|
||||
ReleaseDoubleArrayElements_3.cpp \
|
||||
ReleaseDblArrayElems_1.cpp \
|
||||
ReleaseDblArrayElems_2.cpp \
|
||||
ReleaseDblArrayElems_3.cpp \
|
||||
ReleaseFloatArrayElements_1.cpp \
|
||||
ReleaseFloatArrayElements_2.cpp \
|
||||
ReleaseFloatArrayElements_3.cpp \
|
||||
|
@ -208,18 +208,18 @@ OBJS = \
|
|||
$(OBJ_DIR)/NewShortArray_1.o \
|
||||
$(OBJ_DIR)/NewShortArray_2.o \
|
||||
$(OBJ_DIR)/NewShortArray_3.o \
|
||||
$(OBJ_DIR)/ReleaseBooleanArrayElements_1.o \
|
||||
$(OBJ_DIR)/ReleaseBooleanArrayElements_2.o \
|
||||
$(OBJ_DIR)/ReleaseBooleanArrayElements_3.o \
|
||||
$(OBJ_DIR)/ReleaseBoolArrayElems_1.o \
|
||||
$(OBJ_DIR)/ReleaseBoolArrayElems_2.o \
|
||||
$(OBJ_DIR)/ReleaseBoolArrayElems_3.o \
|
||||
$(OBJ_DIR)/ReleaseByteArrayElements_1.o \
|
||||
$(OBJ_DIR)/ReleaseByteArrayElements_2.o \
|
||||
$(OBJ_DIR)/ReleaseByteArrayElements_3.o \
|
||||
$(OBJ_DIR)/ReleaseCharArrayElements_1.o \
|
||||
$(OBJ_DIR)/ReleaseCharArrayElements_2.o \
|
||||
$(OBJ_DIR)/ReleaseCharArrayElements_3.o \
|
||||
$(OBJ_DIR)/ReleaseDoubleArrayElements_1.o \
|
||||
$(OBJ_DIR)/ReleaseDoubleArrayElements_2.o \
|
||||
$(OBJ_DIR)/ReleaseDoubleArrayElements_3.o \
|
||||
$(OBJ_DIR)/ReleaseDblArrayElems_1.o \
|
||||
$(OBJ_DIR)/ReleaseDblArrayElems_2.o \
|
||||
$(OBJ_DIR)/ReleaseDblArrayElems_3.o \
|
||||
$(OBJ_DIR)/ReleaseFloatArrayElements_1.o \
|
||||
$(OBJ_DIR)/ReleaseFloatArrayElements_2.o \
|
||||
$(OBJ_DIR)/ReleaseFloatArrayElements_3.o \
|
||||
|
|
|
@ -94,18 +94,18 @@ CPP = GetArrayLength_1.cpp \
|
|||
NewShortArray_1.cpp \
|
||||
NewShortArray_2.cpp \
|
||||
NewShortArray_3.cpp \
|
||||
ReleaseBooleanArrayElements_1.cpp \
|
||||
ReleaseBooleanArrayElements_2.cpp \
|
||||
ReleaseBooleanArrayElements_3.cpp \
|
||||
ReleaseBoolArrayElems_1.cpp \
|
||||
ReleaseBoolArrayElems_2.cpp \
|
||||
ReleaseBoolArrayElems_3.cpp \
|
||||
ReleaseByteArrayElements_1.cpp \
|
||||
ReleaseByteArrayElements_2.cpp \
|
||||
ReleaseByteArrayElements_3.cpp \
|
||||
ReleaseCharArrayElements_1.cpp \
|
||||
ReleaseCharArrayElements_2.cpp \
|
||||
ReleaseCharArrayElements_3.cpp \
|
||||
ReleaseDoubleArrayElements_1.cpp \
|
||||
ReleaseDoubleArrayElements_2.cpp \
|
||||
ReleaseDoubleArrayElements_3.cpp \
|
||||
ReleaseDblArrayElems_1.cpp \
|
||||
ReleaseDblArrayElems_2.cpp \
|
||||
ReleaseDblArrayElems_3.cpp \
|
||||
ReleaseFloatArrayElements_1.cpp \
|
||||
ReleaseFloatArrayElements_2.cpp \
|
||||
ReleaseFloatArrayElements_3.cpp \
|
||||
|
@ -209,18 +209,18 @@ OBJS = $(OBJ_DIR)/GetArrayLength_1.obj \
|
|||
$(OBJ_DIR)/NewShortArray_1.obj \
|
||||
$(OBJ_DIR)/NewShortArray_2.obj \
|
||||
$(OBJ_DIR)/NewShortArray_3.obj \
|
||||
$(OBJ_DIR)/ReleaseBooleanArrayElements_1.obj \
|
||||
$(OBJ_DIR)/ReleaseBooleanArrayElements_2.obj \
|
||||
$(OBJ_DIR)/ReleaseBooleanArrayElements_3.obj \
|
||||
$(OBJ_DIR)/ReleaseBoolArrayElems_1.obj \
|
||||
$(OBJ_DIR)/ReleaseBoolArrayElems_2.obj \
|
||||
$(OBJ_DIR)/ReleaseBoolArrayElems_3.obj \
|
||||
$(OBJ_DIR)/ReleaseByteArrayElements_1.obj \
|
||||
$(OBJ_DIR)/ReleaseByteArrayElements_2.obj \
|
||||
$(OBJ_DIR)/ReleaseByteArrayElements_3.obj \
|
||||
$(OBJ_DIR)/ReleaseCharArrayElements_1.obj \
|
||||
$(OBJ_DIR)/ReleaseCharArrayElements_2.obj \
|
||||
$(OBJ_DIR)/ReleaseCharArrayElements_3.obj \
|
||||
$(OBJ_DIR)/ReleaseDoubleArrayElements_1.obj \
|
||||
$(OBJ_DIR)/ReleaseDoubleArrayElements_2.obj \
|
||||
$(OBJ_DIR)/ReleaseDoubleArrayElements_3.obj \
|
||||
$(OBJ_DIR)/ReleaseDblArrayElems_1.obj \
|
||||
$(OBJ_DIR)/ReleaseDblArrayElems_2.obj \
|
||||
$(OBJ_DIR)/ReleaseDblArrayElems_3.obj \
|
||||
$(OBJ_DIR)/ReleaseFloatArrayElements_1.obj \
|
||||
$(OBJ_DIR)/ReleaseFloatArrayElements_2.obj \
|
||||
$(OBJ_DIR)/ReleaseFloatArrayElements_3.obj \
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallBooleanMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_bool", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallBooleanMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_bool", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallByteMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_byte", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)B");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MAX_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallByteMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_byte", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)B");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallCharMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_char", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)C");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallCharMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_char", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)C");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallDoubleMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_double", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallDoubleMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_double", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallFloatMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_float", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)F");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallFloatMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_float", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)F");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_10)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3_final", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_11)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3_sync", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_12)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test11", "Test1_method3_native", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
@ -49,7 +49,10 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_12)
|
|||
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_Test1_Test1_1method3_1native
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
#endif
|
||||
JNIEXPORT jint JNICALL Java_Test11_Test1_1method3_1native
|
||||
(JNIEnv *, jobject, jboolean, jbyte, jchar, jshort, jint, jlong, jfloat, jdouble, jstring, jobjectArray){
|
||||
|
||||
printf("Test1_method3_native passed!\n");
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_18)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_int", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_19)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_int", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_3)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method31", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_4)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method32", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_5)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method33", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_6)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method3", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_7)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method31", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
@ -42,7 +42,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_7)
|
|||
args[9].l = NULL;
|
||||
jint value = env->CallIntMethodA(obj, MethodID, args);
|
||||
jthrowable excep = env->ExceptionOccurred();
|
||||
if(value==121){
|
||||
if(value==0){ //value shouldn't change
|
||||
if((excep != NULL) && (env->IsInstanceOf(excep, clazz_exp))){
|
||||
printf("Exception Occurred, it is correct!!!!\n");
|
||||
return TestResult::PASS("CallIntMethodA for private inherited from superclass method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I) return correct value");
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_8)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method32", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
@ -42,7 +42,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_8)
|
|||
args[9].l = NULL;
|
||||
jint value = env->CallIntMethodA(obj, MethodID, args);
|
||||
jthrowable excep = env->ExceptionOccurred();
|
||||
if(value==121){
|
||||
if(value==0){ //value shouldn't change
|
||||
if((excep != NULL) && (env->IsInstanceOf(excep, clazz_exp))){
|
||||
printf("Exception Occurred, it is correct!!!!\n");
|
||||
return TestResult::PASS("CallIntMethodA for protected inherited from superclass method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I) return correct value");
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_9)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method33", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
@ -42,7 +42,7 @@ JNI_OJIAPITest(JNIEnv_CallIntMethod_9)
|
|||
args[9].l = NULL;
|
||||
jint value = env->CallIntMethodA(obj, MethodID, args);
|
||||
jthrowable excep = env->ExceptionOccurred();
|
||||
if(value==121){
|
||||
if(value==0){ //value shouldn't change
|
||||
if((excep != NULL) && (env->IsInstanceOf(excep, clazz_exp))){
|
||||
printf("Exception Occurred, it is correct!!!!\n");
|
||||
return TestResult::PASS("CallIntMethodA for no-modifiers inherited from superclass method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I) return correct value");
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallLongMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_long", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)J");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallLongMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_long", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)J");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualBooleanMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_bool", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualBooleanMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_bool", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualDoubleMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_double", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualDoubleMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_double", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_string", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_string", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
|
@ -34,7 +34,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_5)
|
|||
jstring str = env->NewString(str_chars, 4);
|
||||
jobject obj_arr = env->NewObject(clazz_arr, methodID_obj, str);
|
||||
jobjectArray arr = env->NewObjectArray(4, clazz_arr, obj_arr);
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
|
@ -34,7 +34,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_6)
|
|||
jstring str = env->NewString(str_chars, 4);
|
||||
jobject obj_arr = env->NewObject(clazz_arr, methodID_obj, str);
|
||||
jobjectArray arr = env->NewObjectArray(4, clazz_arr, obj_arr);
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualByteMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_byte", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)B");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MAX_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualByteMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_byte", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)B");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualCharMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_char", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)C");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualCharMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_char", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)C");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualFloatMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_float", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)F");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualFloatMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_float", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)F");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_10)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method33", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_11)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method3", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_12)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method31", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_13)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method32", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_14)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method33", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_15)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3_final", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_16)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3_sync", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_17)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test11", "Test1_method3_native", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_18)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3_override", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_19)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3_override", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_20)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test11", "Test1_method3_native", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_21)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3_sync", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_22)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3_final", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_23)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method33", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_24)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method32", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_25)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method31", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_26)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_method3", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_27)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method33", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_28)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method32", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_29)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method31", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_30)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_33)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_int", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_34)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_int", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_7)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method3", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_8)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method31", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualIntMethod_9)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method32", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)I");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualLongMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_long", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)J");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualLongMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_long", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)J");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualShortMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_short", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)S");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualShortMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_short", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)S");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallNonvirtualVoidMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method2", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)V");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallObjectMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_string", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallObjectMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_string", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -34,7 +34,7 @@ JNI_OJIAPITest(JNIEnv_CallObjectMethod_5)
|
|||
jstring str = env->NewString(str_chars, 4);
|
||||
jobject obj_arr = env->NewObject(clazz_arr, methodID_obj, str);
|
||||
jobjectArray arr = env->NewObjectArray(4, clazz_arr, obj_arr);
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -34,7 +34,7 @@ JNI_OJIAPITest(JNIEnv_CallObjectMethod_6)
|
|||
jstring str = env->NewString(str_chars, 4);
|
||||
jobject obj_arr = env->NewObject(clazz_arr, methodID_obj, str);
|
||||
jobjectArray arr = env->NewObjectArray(4, clazz_arr, obj_arr);
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallShortMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_short", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)S");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallShortMethod_2)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_short", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)S");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_FALSE;
|
||||
args[1].b = MIN_JBYTE;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_CallVoidMethod_1)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method2", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)V");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -54,15 +54,3 @@
|
|||
jmethodID MethodID = env->GetStaticMethodID(clazz, func_name, returnType);\
|
||||
printf("ID of static %s method = %d\n", func_name, (int)MethodID);
|
||||
|
||||
#define MAX_JINT 2147483647
|
||||
#define MIN_JINT -2147483648
|
||||
#define MAX_JDOUBLE 1.7976931348623157e308
|
||||
#define MIN_JDOUBLE 4.9e-324
|
||||
#define MAX_JBYTE 255
|
||||
#define MIN_JBYTE -256
|
||||
#define MAX_JFLOAT 3.4028235e38
|
||||
#define MIN_JFLOAT 1.4e-45
|
||||
#define MAX_JLONG 9223372036854775807
|
||||
#define MIN_JLONG -9223372036854775808
|
||||
#define MAX_JSHORT 32767
|
||||
#define MIN_JSHORT -32768
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_GetMethodID_10)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method5", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
|
@ -37,7 +37,11 @@ JNI_OJIAPITest(JNIEnv_GetMethodID_14)
|
|||
}
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_Test1_mprint
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
#endif
|
||||
JNIEXPORT void JNICALL Java_Test11_mprint
|
||||
(JNIEnv * env, jobject obj, jint jInt){
|
||||
|
||||
jclass clazz = env->FindClass("Test11");
|
||||
|
|
|
@ -28,7 +28,7 @@ JNI_OJIAPITest(JNIEnv_GetMethodID_7)
|
|||
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method2", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)V");
|
||||
char *path = "asdf";
|
||||
jstring jpath=env->NewStringUTF("sdsadasdasd");
|
||||
jvalue *args = new jvalue[9];
|
||||
jvalue *args = new jvalue[10];
|
||||
args[0].z = JNI_TRUE;
|
||||
args[1].b = 0;
|
||||
args[2].c = 'a';
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче