Constructor.java (toString): Use `getName' for parameter types.
* java/lang/reflect/Constructor.java (toString): Use `getName' for parameter types. * java/lang/reflect/Method.java (toString): Use `getName' for return type. From-SVN: r36214
This commit is contained in:
parent
dbb4d33a9b
commit
9579ea7efd
3 changed files with 8 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
// Constructor.java - Represents a constructor for a class.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -79,7 +79,7 @@ public final class Constructor extends AccessibleObject implements Member
|
|||
b.append("(");
|
||||
for (int i = 0; i < parameter_types.length; ++i)
|
||||
{
|
||||
b.append(parameter_types[i].toString());
|
||||
b.append(parameter_types[i].getName());
|
||||
if (i < parameter_types.length - 1)
|
||||
b.append(",");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue