libjava.jni/calls.c

Richard Henderson rth@redhat.com
Fri Aug 3 01:17:00 GMT 2001


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;
  



More information about the Java-patches mailing list