mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 04:14:06 +08:00
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:
parent
636423701a
commit
f5373caf4e
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user