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
This commit is contained in:
Tom Tromey 1999-12-18 00:44:00 +00:00 committed by Tom Tromey
parent 4e6de5a90f
commit ccfe7d0a0d
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,8 @@
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.
1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>

View File

@ -73,6 +73,9 @@ public final class Method extends AccessibleObject implements Member
public String toString ()
{
if (parameter_types == null)
getType ();
StringBuffer b = new StringBuffer ();
b.append(Modifier.toString(getModifiers()));
b.append(" ");