This is the mail archive of the java@gcc.gnu.org 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]

package delimiters in symbol names in JNI



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')


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