This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: package delimiters in symbol names in JNI
- To: java at gcc dot gnu dot org
- Subject: Re: package delimiters in symbol names in JNI
- From: mgd at swarm dot org (Marcus G. Daniels)
- Date: 25 Mar 2001 16:36:30 -0800
- References: <rfir8zq8n6c.fsf@cathcart.sysc.pdx.edu>
Here's another related patch to jni.cc. (To encode "$" in method names.)
***************
*** 1616,1622 ****
buf[(*here)++] = '_';
buf[(*here)++] = '3';
}
!
// Also check for `.' here because we might be passed an internal
// qualified class name like `foo.bar'.
else if (c == '/' || c == '.')
--- 1653,1667 ----
buf[(*here)++] = '_';
buf[(*here)++] = '3';
}
! else if (c == '$')
! {
! buf[(*here)++] = '_';
! buf[(*here)++] = '0';
! buf[(*here)++] = '0';
! buf[(*here)++] = '0';
! buf[(*here)++] = '2';
! buf[(*here)++] = '4';
! }
// Also check for `.' here because we might be passed an internal
// qualified class name like `foo.bar'.
else if (c == '/' || c == '.')