AWTEvent.java (toString): Added case for source not being an AWT component.

2005-04-18  Robert Schuster <thebohemian@gmx.net>

	* java/awt/AWTEvent.java (toString): Added case
	for source not being an AWT component.

From-SVN: r98346
This commit is contained in:
Robert Schuster 2005-04-18 20:40:34 +00:00 committed by Michael Koch
parent 636423701a
commit f5373caf4e
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-04-18 Robert Schuster <thebohemian@gmx.net>
* java/awt/AWTEvent.java (toString): Added case
for source not being an AWT component.
2005-04-18 Chris Burdess <dog@gnu.org>
* gnu/java/net/BASE64.java: Truncate encoded byte array.

View File

@ -1,5 +1,5 @@
/* AWTEvent.java -- the root event in AWT
Copyright (C) 1999, 2000, 2002 Free Software Foundation
Copyright (C) 1999, 2000, 2002, 2005 Free Software Foundation
This file is part of GNU Classpath.
@ -246,6 +246,9 @@ public abstract class AWTEvent extends EventObject
else if (source instanceof MenuComponent)
string = getClass ().getName () + "[" + paramString () + "] on "
+ ((MenuComponent) source).getName ();
else
string = getClass ().getName () + "[" + paramString () + "] on "
+ source;
return string;
}