summaryrefslogtreecommitdiff
path: root/libjava/jni.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-22 17:47:15 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-22 17:47:15 +0000
commitc78d1cb803b7d2dffb8e19945bad64663e8ed150 (patch)
tree8b614ad090d4eac1e243badca3599a191f1aced9 /libjava/jni.cc
parent69821268e4e66264e3810c6beeeaa1b7257c4058 (diff)
downloadgcc-c78d1cb803b7d2dffb8e19945bad64663e8ed150.tar.gz
2001-03-22 Marcus G. Daniels <mgd@swarm.org>
* jni.cc (add_char): Handle `.' like `/'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40748 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r--libjava/jni.cc5
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')