]> gcc.gnu.org Git - gcc.git/commitdiff
re GNATS gcj/205 (gcjh confused about similar method and attribute names)
authorTom Tromey <tromey@cygnus.com>
Mon, 17 Apr 2000 02:56:52 +0000 (02:56 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 17 Apr 2000 02:56:52 +0000 (02:56 +0000)
* gjavah.c (decompile_method): Use print_field_name.
Fixes PR gcj/205.

From-SVN: r33198

gcc/java/ChangeLog
gcc/java/gjavah.c

index 8123c230f75853ec3131ca8521a371da90d39180..cf4728b4b1c17310190df56203063e794c2fbb07 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-16  Tom Tromey  <tromey@cygnus.com>
+
+       * gjavah.c (decompile_method): Use print_field_name.
+       Fixes PR gcj/205.
+
 2000-04-05  Tom Tromey  <tromey@cygnus.com>
 
        Fix for PR gcj/140:
index 4c36e8793194ef58112160e5f1ce19010948399a..436553cbca0892e28a3c116384ee0400fa8287f9 100644 (file)
@@ -457,7 +457,6 @@ get_field_name (jcf, name_index, flags)
   char *override;
   const char *tmpconstptr;
 
-
   if (name_is_method_p (name, length))
     {
       /* This field name matches a method.  So override the name with
@@ -758,7 +757,8 @@ decompile_method (out, jcf, code_len)
       name_and_type = JPOOL_USHORT2 (jcf, index);
       /* FIXME: ensure that tag is CONSTANT_NameAndType.  */
       name = JPOOL_USHORT1 (jcf, name_and_type);
-      print_name (out, jcf, name);
+      /* FIXME: flags.  */
+      print_field_name (out, jcf, name, 0);
       fputs ("; }", out);
       decompiled = 1;
     }
This page took 0.071526 seconds and 5 git commands to generate.