package delimiters in symbol names in JNI

Marcus G. Daniels mgd@swarm.org
Sun Mar 25 16:36:00 GMT 2001


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /