diff options
author | Marcus G. Daniels <mgd@swarm.org> | 2001-03-22 17:47:15 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-03-22 17:47:15 +0000 |
commit | 736458d64b6e5a19476f302b2e318314ddd8860e (patch) | |
tree | 8b614ad090d4eac1e243badca3599a191f1aced9 /libjava/jni.cc | |
parent | a1c2b86d847dd68625e9209c6a6bc73cfdf01bb7 (diff) | |
download | gcc-736458d64b6e5a19476f302b2e318314ddd8860e.tar.gz |
jni.cc (add_char): Handle `.' like `/'.
2001-03-22 Marcus G. Daniels <mgd@swarm.org>
* jni.cc (add_char): Handle `.' like `/'.
From-SVN: r40748
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r-- | libjava/jni.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc index be79ba95d9f..a4a12a83f47 100644 --- a/libjava/jni.cc +++ b/libjava/jni.cc @@ -1612,7 +1612,10 @@ add_char (char *buf, jchar c, int *here) buf[(*here)++] = '_'; buf[(*here)++] = '3'; } - else if (c == '/') + + // Also check for `.' here because we might be passed an internal + // qualified class name like `foo.bar'. + else if (c == '/' || c == '.') buf[(*here)++] = '_'; else if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') |