Commit ccfe7d0a by Tom Tromey Committed by Tom Tromey

re GNATS libgcj/111 (bug in reflection code)

	* java/lang/reflect/Method.java (toString): Call getType if
	required.  Partial fix for PR libgcj/111.  From Per Bothner.

From-SVN: r31002
parent 4e6de5a9
1999-12-17 Tom Tromey <tromey@cygnus.com> 1999-12-17 Tom Tromey <tromey@cygnus.com>
* java/lang/reflect/Method.java (toString): Call getType if
required. Partial fix for PR libgcj/111. From Per Bothner.
* java/lang/natPosixProcess.cc (startProcess): Don't use sprintf. * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
1999-12-16 Bryce McKinlay <bryce@albatross.co.nz> 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
......
...@@ -73,6 +73,9 @@ public final class Method extends AccessibleObject implements Member ...@@ -73,6 +73,9 @@ public final class Method extends AccessibleObject implements Member
public String toString () public String toString ()
{ {
if (parameter_types == null)
getType ();
StringBuffer b = new StringBuffer (); StringBuffer b = new StringBuffer ();
b.append(Modifier.toString(getModifiers())); b.append(Modifier.toString(getModifiers()));
b.append(" "); b.append(" ");
......
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