This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libjava.jni/calls.c


This test has been failing because it's got a typo.

If you were actually intending to test CallCharMethodV, you'd
need to jump through some hoops to get hold of a valid va_list.

Ok?


r~


Index: testsuite/libjava.jni/calls.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.jni/calls.c,v
retrieving revision 1.1
diff -c -p -d -r1.1 calls.c
*** calls.c	2000/02/17 00:49:27	1.1
--- calls.c	2001/08/03 08:13:58
*************** Java_calls_docall (JNIEnv *env, jobject 
*** 29,35 ****
  
    method = (*env)->GetMethodID (env, klass, "char_f", "(I)C");
    val.i = 10;
!   c = (*env)->CallCharMethodV (env, _this, method, &val);
    if (c != ('a' + 10))
      ++fails;
  
--- 29,35 ----
  
    method = (*env)->GetMethodID (env, klass, "char_f", "(I)C");
    val.i = 10;
!   c = (*env)->CallCharMethodA (env, _this, method, &val);
    if (c != ('a' + 10))
      ++fails;
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]