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]

Re: package delimiters in symbol names in JNI



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


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