diff options
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/gjavah.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 6abba84..bfcfb16 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +1999-08-26 Tom Tromey <tromey@cygnus.com> + + * gjavah.c (print_cxx_classname): Print "::" before qualified + name. + Thu Aug 26 09:10:58 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (lookup_cl): Changed leading comment. Now does its best diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 7f0d223..2574754 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -753,6 +753,8 @@ decode_signature_piece (stream, signature, limit, need_space) case 'Z': ctype = "jboolean"; goto printit; case 'V': ctype = "void"; goto printit; case 'L': + /* Print a leading "::" so we look in the right namespace. */ + fputs ("::", stream); ++signature; while (*signature && *signature != ';') { @@ -988,6 +990,10 @@ print_cxx_classname (stream, prefix, jcf, index) return 0; fputs (prefix, stream); + + /* Print a leading "::" so we look in the right namespace. */ + fputs ("::", stream); + while (s < limit) { c = UTF8_GET (s, limit); |