This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
package delimiters in symbol names in JNI
- To: java at gcc dot gnu dot org
- Subject: package delimiters in symbol names in JNI
- From: mgd at swarm dot org (Marcus G. Daniels)
- Date: 21 Mar 2001 20:03:55 -0800
Hi, I needed to make this change in order to get my native classes to work..
(Well, I'm still having trouble with field accesses that are arrays, but I
haven't figured that out yet...)
Index: jni.cc
===================================================================
RCS file: /cvs/gcc/egcs/libjava/jni.cc,v
retrieving revision 1.36
diff -c -r1.36 jni.cc
*** jni.cc 2001/01/27 19:30:31 1.36
--- jni.cc 2001/03/22 04:01:28
***************
*** 1612,1618 ****
buf[(*here)++] = '_';
buf[(*here)++] = '3';
}
! else if (c == '/')
buf[(*here)++] = '_';
else if ((c >= '0' && c <= '9')
|| (c >= 'a' && c <= 'z')
--- 1612,1618 ----
buf[(*here)++] = '_';
buf[(*here)++] = '3';
}
! else if (c == '/' || c == '.')
buf[(*here)++] = '_';
else if ((c >= '0' && c <= '9')
|| (c >= 'a' && c <= 'z')