Commit 8822f4aa by Bryce McKinlay Committed by Bryce McKinlay

Method.java (toString): Avoid extra whitespace on method with no modifiers.

	* java/lang/reflect/Method.java (toString): Avoid extra whitespace
	on method with no modifiers.

From-SVN: r72919
parent a10fd356
2003-10-25 Bryce McKinlay <bryce@mckinlay.net.nz>
* java/lang/reflect/Method.java (toString): Avoid extra whitespace
on method with no modifiers.
2003-10-25 Bryce McKinlay <bryce@mckinlay.net.nz>
PR libgcj/11780:
* java/lang/reflect/natMethod.cc (invoke): Look up caller and perform
accessibility check only if target is non-public and accessible flag
......
......@@ -163,8 +163,12 @@ public final class Method extends AccessibleObject implements Member
getType ();
StringBuffer b = new StringBuffer ();
Modifier.toString(getModifiers(), b);
b.append(" ");
int mods = getModifiers();
if (mods != 0)
{
Modifier.toString(mods, b);
b.append(" ");
}
appendClassName (b, return_type);
b.append(" ");
appendClassName (b, declaringClass);
......
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