Commit 5fcab235 by Tom Tromey Committed by Tom Tromey

gjavah.c (decompile_method): Don't decompile to `return this' for static methods.

	* gjavah.c (decompile_method): Don't decompile to `return this'
	for static methods.

From-SVN: r47804
parent 7b35f6c9
2001-12-08 Tom Tromey <tromey@redhat.com>
* gjavah.c (decompile_method): Don't decompile to `return this'
for static methods.
* gjavah.c (cxx_keywords): Re-sorted.
* lex.c (cxx_keywords): Re-sorted.
......
......@@ -1065,7 +1065,10 @@ decompile_method (out, jcf, code_len)
}
else if (code_len == 2
&& codes[0] == OPCODE_aload_0
&& codes[1] == OPCODE_areturn)
&& codes[1] == OPCODE_areturn
/* We're going to generate `return this'. This only makes
sense for non-static methods. */
&& ! (method_access & ACC_STATIC))
{
decompile_return_statement (out, jcf, method_signature, -1,
JPOOL_USHORT1 (jcf, jcf->this_class));
......
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