This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: fix for `...' arguments in jni.h
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: fix for `...' arguments in jni.h
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 01 Feb 2000 18:49:07 -0700
- Reply-To: tromey at cygnus dot com
My recent patch to jni.h had a bug which somehow escaped detection.
This patch fixes it.
2000-02-01 Tom Tromey <tromey@cygnus.com>
* include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
Tom
Index: include/jni.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/include/jni.h,v
retrieving revision 1.8
diff -u -r1.8 jni.h
--- jni.h 2000/02/01 21:04:44 1.8
+++ jni.h 2000/02/02 01:42:46
@@ -790,7 +790,7 @@
jobject CallNonvirtualObjectMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
{
_Jv_va_list args;
- va_start (args, cl1);
+ va_start (args, meth2);
jobject result = p->CallNonvirtualObjectMethodV (this, obj0, cl1, meth2, args);
va_end (args);
return result;
@@ -805,7 +805,7 @@
jboolean CallNonvirtualBooleanMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
{
_Jv_va_list args;
- va_start (args, cl1);
+ va_start (args, meth2);
jboolean result = p->CallNonvirtualBooleanMethodV (this, obj0, cl1, meth2, args);
va_end (args);
return result;
@@ -820,7 +820,7 @@
jbyte CallNonvirtualByteMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
{
_Jv_va_list args;
- va_start (args, cl1);
+ va_start (args, meth2);
jbyte result = p->CallNonvirtualByteMethodV (this, obj0, cl1, meth2, args);
va_end (args);
return result;
@@ -835,7 +835,7 @@
jchar CallNonvirtualCharMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
{
_Jv_va_list args;
- va_start (args, cl1);
+ va_start (args, meth2);
jchar result = p->CallNonvirtualCharMethodV (this, obj0, cl1, meth2, args);
va_end (args);
return result;
@@ -850,7 +850,7 @@
jshort CallNonvirtualShortMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
{
_Jv_va_list args;
- va_start (args, cl1);
+ va_start (args, meth2);
jshort result = p->CallNonvirtualShortMethodV (this, obj0, cl1, meth2, args);
va_end (args);
return result;
@@ -865,7 +865,7 @@
jint CallNonvirtualIntMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
{
_Jv_va_list args;
- va_start (args, cl1);
+ va_start (args, meth2);
jint result = p->CallNonvirtualIntMethodV (this, obj0, cl1, meth2, args);
va_end (args);
return result;
@@ -880,7 +880,7 @@
jlong CallNonvirtualLongMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
{
_Jv_va_list args;
- va_start (args, cl1);
+ va_start (args, meth2);
jlong result = p->CallNonvirtualLongMethodV (this, obj0, cl1, meth2, args);
va_end (args);
return result;
@@ -895,7 +895,7 @@
jfloat CallNonvirtualFloatMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
{
_Jv_va_list args;
- va_start (args, cl1);
+ va_start (args, meth2);
jfloat result = p->CallNonvirtualFloatMethodV (this, obj0, cl1, meth2, args);
va_end (args);
return result;
@@ -910,7 +910,7 @@
jdouble CallNonvirtualDoubleMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
{
_Jv_va_list args;
- va_start (args, cl1);
+ va_start (args, meth2);
jdouble result = p->CallNonvirtualDoubleMethodV (this, obj0, cl1, meth2, args);
va_end (args);
return result;
@@ -925,7 +925,7 @@
void CallNonvirtualVoidMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
{
_Jv_va_list args;
- va_start (args, cl1);
+ va_start (args, meth2);
p->CallNonvirtualVoidMethodV (this, obj0, cl1, meth2, args);
va_end (args);
}