Commit f5373caf by Robert Schuster Committed by Michael Koch

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
parent 63642370
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> 2005-04-18 Chris Burdess <dog@gnu.org>
* gnu/java/net/BASE64.java: Truncate encoded byte array. * gnu/java/net/BASE64.java: Truncate encoded byte array.
......
/* AWTEvent.java -- the root event in AWT /* 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. This file is part of GNU Classpath.
...@@ -246,6 +246,9 @@ public abstract class AWTEvent extends EventObject ...@@ -246,6 +246,9 @@ public abstract class AWTEvent extends EventObject
else if (source instanceof MenuComponent) else if (source instanceof MenuComponent)
string = getClass ().getName () + "[" + paramString () + "] on " string = getClass ().getName () + "[" + paramString () + "] on "
+ ((MenuComponent) source).getName (); + ((MenuComponent) source).getName ();
else
string = getClass ().getName () + "[" + paramString () + "] on "
+ source;
return string; return string;
} }
......
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