This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: another JNI mangling patch
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: another JNI mangling patch
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 15 Feb 2000 15:59:31 -0700
- Reply-To: tromey at cygnus dot com
I'm committing the appended patch.
It fixes another bug in JNI name mangling.
The bug is that we want to skip the leading `(' in a signature, but we
failed to actually do so.
2000-02-15 Tom Tromey <tromey@cygnus.com>
* jni.cc (mangled_name): Skip leading `(' in signature.
Tom
Index: jni.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/jni.cc,v
retrieving revision 1.15
diff -u -r1.15 jni.cc
--- jni.cc 2000/02/15 22:42:10 1.15
+++ jni.cc 2000/02/15 22:56:35
@@ -1308,7 +1308,8 @@
const unsigned char *sig = (const unsigned char *) signature->data;
limit = sig + signature->length;
JvAssert (signature[0] == '(');
- for (int i = 1; ; ++i)
+ ++sig;
+ while (1)
{
int ch = UTF8_GET (sig, limit);
if (ch == ')' || ch < 0)