Commit 3e0768f0 by Tom Tromey Committed by Tom Tromey

re GNATS gcj/205 (gcjh confused about similar method and attribute names)

	* gjavah.c (decompile_method): Use print_field_name.
	Fixes PR gcj/205.

From-SVN: r33198
parent bd66587e
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> 2000-04-05 Tom Tromey <tromey@cygnus.com>
Fix for PR gcj/140: Fix for PR gcj/140:
......
...@@ -457,7 +457,6 @@ get_field_name (jcf, name_index, flags) ...@@ -457,7 +457,6 @@ get_field_name (jcf, name_index, flags)
char *override; char *override;
const char *tmpconstptr; const char *tmpconstptr;
if (name_is_method_p (name, length)) if (name_is_method_p (name, length))
{ {
/* This field name matches a method. So override the name with /* This field name matches a method. So override the name with
...@@ -758,7 +757,8 @@ decompile_method (out, jcf, code_len) ...@@ -758,7 +757,8 @@ decompile_method (out, jcf, code_len)
name_and_type = JPOOL_USHORT2 (jcf, index); name_and_type = JPOOL_USHORT2 (jcf, index);
/* FIXME: ensure that tag is CONSTANT_NameAndType. */ /* FIXME: ensure that tag is CONSTANT_NameAndType. */
name = JPOOL_USHORT1 (jcf, name_and_type); name = JPOOL_USHORT1 (jcf, name_and_type);
print_name (out, jcf, name); /* FIXME: flags. */
print_field_name (out, jcf, name, 0);
fputs ("; }", out); fputs ("; }", out);
decompiled = 1; decompiled = 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment