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:
rpallath%eng.sun.com 2000-05-15 21:49:21 +00:00
Родитель 345804582d
Коммит 61ae6946be
165 изменённых файлов: 1372 добавлений и 250 удалений

Просмотреть файл

@ -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 \

Просмотреть файл

@ -0,0 +1,54 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "ArrayOperations.h"
JNI_OJIAPITest(JNIEnv_ReleaseBooleanArrayElements_1)
{
GET_JNI_FOR_TEST
jbooleanArray arr = env->NewBooleanArray(3);
jsize start = 0;
jsize leng = 3;
jboolean buf[3];
buf[0] = JNI_TRUE;
buf[1] = JNI_FALSE;
buf[2] = 0;
env->SetBooleanArrayRegion(arr, start, leng, buf);
jboolean isCopy = JNI_TRUE;
jboolean *val = env->GetBooleanArrayElements(arr, &isCopy);
jboolean val0 = val[0];
jboolean val1 = val[1];
jboolean val2 = val[2];
val[0] = 0;
val[1] = 1;
val[2] = 1;
printf("val0 = %d and val1 = %d and val2 = %d", val[0], val[1], val[2]);
env->ReleaseBooleanArrayElements(arr, val, 0);
jboolean *valu = env->GetBooleanArrayElements(arr, &isCopy);
printf("\n\nvalu[0] = %d and valu[1] = %d and valu[2] = %d", valu[0], valu[1], valu[2]);
if((valu[0]==0) && (valu[1]==1) && (valu[2]==1)){
return TestResult::PASS("ReleaseBooleanArrayElements(arr, val, 0) is correct");
}else{
return TestResult::FAIL("ReleaseBooleanArrayElements(arr, val, 0) is incorrect");
}
}

Просмотреть файл

@ -0,0 +1,54 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "ArrayOperations.h"
JNI_OJIAPITest(JNIEnv_ReleaseBooleanArrayElements_2)
{
GET_JNI_FOR_TEST
jbooleanArray arr = env->NewBooleanArray(3);
jsize start = 0;
jsize leng = 3;
jboolean buf[3];
buf[0] = JNI_TRUE;
buf[1] = JNI_FALSE;
buf[2] = 0;
env->SetBooleanArrayRegion(arr, start, leng, buf);
jboolean isCopy = JNI_TRUE;
jboolean *val = env->GetBooleanArrayElements(arr, &isCopy);
jboolean val0 = val[0];
jboolean val1 = val[1];
jboolean val2 = val[2];
val[0] = 0;
val[1] = 1;
val[2] = 1;
printf("val0 = %d and val1 = %d and val2 = %d", val[0], val[1], val[2]);
env->ReleaseBooleanArrayElements(arr, val, JNI_ABORT);
jboolean *valu = env->GetBooleanArrayElements(arr, &isCopy);
printf("\n\nvalu[0] = %d and valu[1] = %d and valu[2] = %d", valu[0], valu[1], valu[2]);
if((valu[0]==JNI_TRUE) && (valu[1]==JNI_FALSE) && (valu[2]==0)){
return TestResult::PASS("ReleaseBooleanArrayElements(arr, val, JNI_ABORT) is correct");
}else{
return TestResult::FAIL("ReleaseBooleanArrayElements(arr, val, JNI_ABORT) is incorrect");
}
}

Просмотреть файл

@ -0,0 +1,55 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "ArrayOperations.h"
JNI_OJIAPITest(JNIEnv_ReleaseBooleanArrayElements_3)
{
GET_JNI_FOR_TEST
jbooleanArray arr = env->NewBooleanArray(3);
jsize start = 0;
jsize leng = 3;
jboolean buf[3];
buf[0] = JNI_TRUE;
buf[1] = JNI_FALSE;
buf[2] = 0;
env->SetBooleanArrayRegion(arr, start, leng, buf);
jboolean isCopy = JNI_TRUE;
jboolean *val = env->GetBooleanArrayElements(arr, &isCopy);
jboolean val0 = val[0];
jboolean val1 = val[1];
jboolean val2 = val[2];
val[0] = 0;
val[1] = 1;
val[2] = 1;
printf("val0 = %d and val1 = %d and val2 = %d", val[0], val[1], val[2]);
env->ReleaseBooleanArrayElements(arr, val, JNI_COMMIT);
jboolean *valu = env->GetBooleanArrayElements(arr, &isCopy);
printf("\n\nvalu[0] = %d and valu[1] = %d and valu[2] = %d", valu[0], valu[1], valu[2]);
if((valu[0]==0) && (valu[1]==1) && (valu[2]==1) && (val[0]==0)){
return TestResult::PASS("ReleaseBooleanArrayElements(arr, val, JNI_COMMIT) is correct");
}else{
return TestResult::FAIL("ReleaseBooleanArrayElements(arr, val, JNI_COMMIT) is incorrect");
}
}

Просмотреть файл

@ -0,0 +1,54 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "ArrayOperations.h"
JNI_OJIAPITest(JNIEnv_ReleaseDoubleArrayElements_1)
{
GET_JNI_FOR_TEST
jdoubleArray arr = env->NewDoubleArray(3);
jsize start = 0;
jsize leng = 3;
jdouble buf[3];
buf[0] = MAX_JDOUBLE;
buf[1] = MIN_JDOUBLE;
buf[2] = 10;
env->SetDoubleArrayRegion(arr, start, leng, buf);
jboolean isCopy = JNI_TRUE;
jdouble *val = env->GetDoubleArrayElements(arr, &isCopy);
jdouble val0 = val[0];
jdouble val1 = val[1];
jdouble val2 = val[2];
val[0] = 0;
val[1] = 1;
val[2] = 2;
printf("val0 = %d and val1 = %d and val2 = %d", val[0], val[1], val[2]);
env->ReleaseDoubleArrayElements(arr, val, 0);
jdouble *valu = env->GetDoubleArrayElements(arr, &isCopy);
printf("\n\nvalu[0] = %d and valu[1] = %d and valu[2] = %d", valu[0], valu[1], valu[2]);
if((valu[0]==0) && (valu[1]==1) && (valu[2]==2)){
return TestResult::PASS("ReleaseDoubleArrayElements(arr, val, 0) is correct");
}else{
return TestResult::FAIL("ReleaseDoubleArrayElements(arr, val, 0) is incorrect");
}
}

Просмотреть файл

@ -0,0 +1,54 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "ArrayOperations.h"
JNI_OJIAPITest(JNIEnv_ReleaseDoubleArrayElements_2)
{
GET_JNI_FOR_TEST
jdoubleArray arr = env->NewDoubleArray(3);
jsize start = 0;
jsize leng = 3;
jdouble buf[3];
buf[0] = MAX_JDOUBLE;
buf[1] = MIN_JDOUBLE;
buf[2] = 10;
env->SetDoubleArrayRegion(arr, start, leng, buf);
jboolean isCopy = JNI_TRUE;
jdouble *val = env->GetDoubleArrayElements(arr, &isCopy);
jdouble val0 = val[0];
jdouble val1 = val[1];
jdouble val2 = val[2];
val[0] = 0;
val[1] = 1;
val[2] = 2;
printf("val0 = %d and val1 = %d and val2 = %d", val[0], val[1], val[2]);
env->ReleaseDoubleArrayElements(arr, val, JNI_ABORT);
jdouble *valu = env->GetDoubleArrayElements(arr, &isCopy);
printf("\n\nvalu[0] = %d and valu[1] = %d and valu[2] = %d", valu[0], valu[1], valu[2]);
if((valu[0]==MAX_JDOUBLE) && (valu[1]==MIN_JDOUBLE) && (valu[2]==10)){
return TestResult::PASS("ReleaseDoubleArrayElements(arr, val, JNI_ABORT) is correct");
}else{
return TestResult::FAIL("ReleaseDoubleArrayElements(arr, val, JNI_ABORT) is incorrect");
}
}

Просмотреть файл

@ -0,0 +1,55 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "ArrayOperations.h"
JNI_OJIAPITest(JNIEnv_ReleaseDoubleArrayElements_3)
{
GET_JNI_FOR_TEST
jdoubleArray arr = env->NewDoubleArray(3);
jsize start = 0;
jsize leng = 3;
jdouble buf[3];
buf[0] = MAX_JDOUBLE;
buf[1] = MIN_JDOUBLE;
buf[2] = 10;
env->SetDoubleArrayRegion(arr, start, leng, buf);
jboolean isCopy = JNI_TRUE;
jdouble *val = env->GetDoubleArrayElements(arr, &isCopy);
jdouble val0 = val[0];
jdouble val1 = val[1];
jdouble val2 = val[2];
val[0] = 0;
val[1] = 1;
val[2] = 2;
printf("val0 = %d and val1 = %d and val2 = %d", val[0], val[1], val[2]);
env->ReleaseDoubleArrayElements(arr, val, JNI_COMMIT);
jdouble *valu = env->GetDoubleArrayElements(arr, &isCopy);
printf("\n\nvalu[0] = %d and valu[1] = %d and valu[2] = %d", valu[0], valu[1], valu[2]);
if((valu[0]==0) && (valu[1]==1) && (valu[2]==2) && (val[0]==0)){
return TestResult::PASS("ReleaseDoubleArrayElements(arr, val, JNI_COMMIT) is correct");
}else{
return TestResult::FAIL("ReleaseDoubleArrayElements(arr, val, JNI_COMMIT) is incorrect");
}
}

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -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';

Просмотреть файл

@ -0,0 +1,50 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualBooleanMethod_1)
{
GET_JNI_FOR_TEST
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[10];
args[0].z = JNI_TRUE;
args[1].b = 0;
args[2].c = 'a';
args[3].s = 1;
args[4].i = 123;
args[5].j = 0;
args[6].f = 0;
args[7].d = 100;
args[8].l = jpath;
args[9].l = NULL;
jboolean value = env->CallNonvirtualBooleanMethodA(obj, env->GetSuperclass(clazz), MethodID, args);
if(value == JNI_TRUE){
return TestResult::PASS("CallNonvirtualBooleanMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualBooleanMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,50 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualBooleanMethod_2)
{
GET_JNI_FOR_TEST
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[10];
args[0].z = JNI_FALSE;
args[1].b = 0;
args[2].c = 'a';
args[3].s = 1;
args[4].i = 123;
args[5].j = 0;
args[6].f = 0;
args[7].d = 100;
args[8].l = jpath;
args[9].l = NULL;
jboolean value = env->CallNonvirtualBooleanMethodA(obj, env->GetSuperclass(clazz), MethodID, args);
if(value == JNI_FALSE){
return TestResult::PASS("CallNonvirtualBooleanMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualBooleanMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,37 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualBooleanMethod_3)
{
GET_JNI_FOR_TEST
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_bool", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z");
jboolean value = env->CallNonvirtualBooleanMethod(obj, env->GetSuperclass(clazz), MethodID, JNI_TRUE, 0, 'a', 1, 123, 0, 0, 100, NULL, NULL);
if(value == JNI_TRUE){
return TestResult::PASS("CallNonvirtualBooleanMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualBooleanMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,37 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualBooleanMethod_4)
{
GET_JNI_FOR_TEST
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_bool", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z");
jboolean value = env->CallNonvirtualBooleanMethod(obj, env->GetSuperclass(clazz), MethodID, JNI_FALSE, 0, 'a', 1, 123, 0, 0, 100, NULL, NULL);
if(value == JNI_FALSE){
return TestResult::PASS("CallNonvirtualBooleanMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualBooleanMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,50 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualDoubleMethod_1)
{
GET_JNI_FOR_TEST
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[10];
args[0].z = JNI_FALSE;
args[1].b = MIN_JBYTE;
args[2].c = 'a';
args[3].s = MAX_JSHORT;
args[4].i = 123;
args[5].j = 0;
args[6].f = 0;
args[7].d = MAX_JDOUBLE;
args[8].l = jpath;
args[9].l = NULL;
jdouble value = env->CallNonvirtualDoubleMethodA(obj, env->GetSuperclass(clazz), MethodID, args);
if(value == MAX_JDOUBLE){
return TestResult::PASS("CallNonvirtualDoubleMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualDoubleMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,50 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualDoubleMethod_2)
{
GET_JNI_FOR_TEST
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[10];
args[0].z = JNI_FALSE;
args[1].b = MIN_JBYTE;
args[2].c = 'a';
args[3].s = MAX_JSHORT;
args[4].i = 123;
args[5].j = 0;
args[6].f = 0;
args[7].d = MIN_JDOUBLE;
args[8].l = jpath;
args[9].l = NULL;
jdouble value = env->CallNonvirtualDoubleMethodA(obj, env->GetSuperclass(clazz), MethodID, args);
if(value == MIN_JDOUBLE){
return TestResult::PASS("CallNonvirtualDoubleMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualDoubleMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,37 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualDoubleMethod_3)
{
GET_JNI_FOR_TEST
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_double", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D");
jdouble value = env->CallNonvirtualDoubleMethod(obj, env->GetSuperclass(clazz), MethodID, JNI_TRUE, 0, 'a', 1, 123, 0, 0, MAX_JDOUBLE, NULL, NULL);
if(value == MAX_JDOUBLE){
return TestResult::PASS("CallNonvirtualDoubleMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualDoubleMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,37 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualDoubleMethod_4)
{
GET_JNI_FOR_TEST
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_double", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D");
jdouble value = env->CallNonvirtualDoubleMethod(obj, env->GetSuperclass(clazz), MethodID, JNI_TRUE, 0, 'a', 1, 123, 0, 0, MIN_JDOUBLE, NULL, NULL);
if(value == MIN_JDOUBLE){
return TestResult::PASS("CallNonvirtualDoubleMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualDoubleMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)D) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,50 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_1)
{
GET_JNI_FOR_TEST
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[10];
args[0].z = JNI_FALSE;
args[1].b = MIN_JBYTE;
args[2].c = 'a';
args[3].s = MAX_JSHORT;
args[4].i = 123;
args[5].j = 0;
args[6].f = 0;
args[7].d = 100;
args[8].l = jpath;
args[9].l = NULL;
jstring value = (jstring)env->CallNonvirtualObjectMethodA(obj, env->GetSuperclass(clazz), MethodID, args);
if(env->GetStringLength(value) == 11){
return TestResult::PASS("CallNonvirtualObjectMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualObjectMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,50 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_2)
{
GET_JNI_FOR_TEST
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[10];
args[0].z = JNI_FALSE;
args[1].b = MIN_JBYTE;
args[2].c = 'a';
args[3].s = MAX_JSHORT;
args[4].i = 123;
args[5].j = 0;
args[6].f = 0;
args[7].d = 100;
args[8].l = NULL;
args[9].l = NULL;
jstring value = (jstring)env->CallNonvirtualObjectMethodA(obj, env->GetSuperclass(clazz), MethodID, args);
if(value == NULL){
return TestResult::PASS("CallNonvirtualObjectMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualObjectMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,39 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_3)
{
GET_JNI_FOR_TEST
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_string", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;");
char *path = "asdf";
jstring jpath=env->NewStringUTF("sdsadasdasd");
jstring value = (jstring)env->CallNonvirtualObjectMethod(obj, env->GetSuperclass(clazz), MethodID, JNI_TRUE, 0, 'a', MIN_JSHORT, 123, 0, 0, MAX_JDOUBLE, jpath, NULL);
if(env->GetStringLength(value) == 11){
return TestResult::PASS("CallNonvirtualObjectMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualObjectMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,39 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_4)
{
GET_JNI_FOR_TEST
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method_string", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;");
char *path = "asdf";
jstring jpath=env->NewStringUTF("sdsadasdasd");
jstring value = (jstring)env->CallNonvirtualObjectMethod(obj, env->GetSuperclass(clazz), MethodID, JNI_TRUE, 0, 'a', MIN_JSHORT, 123, 0, 0, MAX_JDOUBLE, NULL, NULL);
if(value == NULL){
return TestResult::PASS("CallNonvirtualObjectMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualObjectMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Ljava/lang/String;) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,59 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_5)
{
GET_JNI_FOR_TEST
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method5", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;");
char *path = "asdf";
jstring jpath=env->NewStringUTF("sdsadasdasd");
jclass clazz_arr = env->FindClass("Ljava/lang/String;");
jmethodID methodID_obj = env->GetMethodID(clazz_arr, "<init>", "(Ljava/lang/String;)V");
jchar str_chars[]={'T', 'e', 's', 't'};
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[10];
args[0].z = JNI_FALSE;
args[1].b = MIN_JBYTE;
args[2].c = 'a';
args[3].s = MAX_JSHORT;
args[4].i = 123;
args[5].j = 0;
args[6].f = 0;
args[7].d = 100;
args[8].l = jpath;
args[9].l = arr;
jobjectArray value = (jobjectArray)env->CallNonvirtualObjectMethodA(obj, env->GetSuperclass(clazz), MethodID, args);
jstring str_ret = (jstring)env->GetObjectArrayElement(value, (jsize) 1);
char* str_chars_ret = (char *) env->GetStringUTFChars(str, NULL);
jsize len_ret = env->GetArrayLength(value);
if((len_ret == 4) && (strcmp(str_chars_ret, "Test") == 0)){
return TestResult::PASS("CallNonvirtualObjectMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualObjectMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,56 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_6)
{
GET_JNI_FOR_TEST
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method5", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;");
char *path = "asdf";
jstring jpath=env->NewStringUTF("sdsadasdasd");
jclass clazz_arr = env->FindClass("Ljava/lang/String;");
jmethodID methodID_obj = env->GetMethodID(clazz_arr, "<init>", "(Ljava/lang/String;)V");
jchar str_chars[]={'T', 'e', 's', 't'};
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[10];
args[0].z = JNI_FALSE;
args[1].b = MIN_JBYTE;
args[2].c = 'a';
args[3].s = MAX_JSHORT;
args[4].i = 123;
args[5].j = 0;
args[6].f = 0;
args[7].d = 100;
args[8].l = jpath;
args[9].l = NULL;
jobjectArray value = (jobjectArray)env->CallNonvirtualObjectMethodA(obj, env->GetSuperclass(clazz), MethodID, args);
if(value == NULL){
return TestResult::PASS("CallNonvirtualObjectMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualObjectMethodA for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;) return incorrect value");
}
}

Просмотреть файл

@ -0,0 +1,54 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Sun Microsystems,
* Inc. Portions created by Sun are
* Copyright (C) 1999 Sun Microsystems, Inc. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"
JNI_OJIAPITest(JNIEnv_CallNonvirtualObjectMethod_7)
{
GET_JNI_FOR_TEST
jstring jpath=env->NewStringUTF("sdsadasdasd");
jclass clazz_arr = env->FindClass("Ljava/lang/String;");
jmethodID methodID_obj = env->GetMethodID(clazz_arr, "<init>", "(Ljava/lang/String;)V");
jchar str_chars[]={'T', 'e', 's', 't'};
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);
IMPLEMENT_GetMethodID_METHOD("Test1", "Test1_method5", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;");
char *path = "asdf";
if(arr==NULL){
printf("arr is NULL!\n");
}
jobjectArray value = (jobjectArray)env->CallNonvirtualObjectMethod(obj, env->GetSuperclass(clazz), MethodID, JNI_TRUE, 0, 'a', MIN_JSHORT, 123, 0, 0, MAX_JDOUBLE, jpath, NULL);
if(value == NULL){
printf("value is NULL!!! \n\n");
}
jstring str_ret = (jstring)env->GetObjectArrayElement(value, (jsize) 1);
char* str_chars_ret = (char *) env->GetStringUTFChars(str, NULL);
jsize len_ret = env->GetArrayLength(value);
if((len_ret == 4) && (strcmp(str_chars_ret, "Test") == 0)){
return TestResult::PASS("CallNonvirtualObjectMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;) return correct value");
}else{
return TestResult::FAIL("CallNonvirtualObjectMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;) return incorrect value");
}
}

Просмотреть файл

@ -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';

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше