From 736458d64b6e5a19476f302b2e318314ddd8860e Mon Sep 17 00:00:00 2001 From: "Marcus G. Daniels" Date: Thu, 22 Mar 2001 17:47:15 +0000 Subject: jni.cc (add_char): Handle `.' like `/'. 2001-03-22 Marcus G. Daniels * jni.cc (add_char): Handle `.' like `/'. From-SVN: r40748 --- libjava/ChangeLog | 4 ++++ libjava/jni.cc | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'libjava') diff --git a/libjava/ChangeLog b/libjava/ChangeLog index d74bd21..16f8e65 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2001-03-22 Marcus G. Daniels + + * jni.cc (add_char): Handle `.' like `/'. + 2001-03-22 Bryce McKinlay * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to diff --git a/libjava/jni.cc b/libjava/jni.cc index be79ba9..a4a12a8 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') -- cgit v1.1