This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: JNI fix from Marcus Daniels
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: JNI fix from Marcus Daniels
- From: Tom Tromey <tromey at redhat dot com>
- Date: 22 Mar 2001 10:51:06 -0700
- Reply-To: tromey at redhat dot com
I'm checking this in to trunk and branch.
2001-03-22 Marcus G. Daniels <mgd@swarm.org>
* jni.cc (add_char): Handle `.' like `/'.
Tom
Index: jni.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/jni.cc,v
retrieving revision 1.36
diff -u -r1.36 jni.cc
--- jni.cc 2001/01/27 19:30:31 1.36
+++ jni.cc 2001/03/22 17:38:58
@@ -1612,7 +1612,10 @@
buf[(*here)++] = '_';
buf[(*here)++] = '3';
}
- else if (c == '/')
+
+ // Also check for `.' here because we might be passed an internal
+ // qualified class name like `foo.bar'.
+ else if (c == '/' || c == '.')
buf[(*here)++] = '_';
else if ((c >= '0' && c <= '9')
|| (c >= 'a' && c <= 'z')