package delimiters in symbol names in JNI
Marcus G. Daniels
mgd@swarm.org
Wed Mar 21 20:04:00 GMT 2001
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')
More information about the Java
mailing list