This is the mail archive of the java-patches@sourceware.cygnus.com 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]

Patch: bug fix in JNI name mangling


I'm checking in the appended patch.
It fixes a simple bug in the JNI name mangling code.

2000-02-15  Tom Tromey  <tromey@cygnus.com>

	* jni.cc (add_char): Added missing `else'.

Tom

Index: jni.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/jni.cc,v
retrieving revision 1.14
diff -u -r1.14 jni.cc
--- jni.cc	2000/02/15 20:39:36	1.14
+++ jni.cc	2000/02/15 22:36:55
@@ -1251,7 +1251,7 @@
     }
   else if (c == '/')
     buf[(*here)++] = '_';
-  if ((c >= '0' && c <= '9')
+  else if ((c >= '0' && c <= '9')
       || (c >= 'a' && c <= 'z')
       || (c >= 'A' && c <= 'Z'))
     buf[(*here)++] = (char) c;

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