aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorRobert Schuster <thebohemian@gmx.net>2005-04-18 20:40:34 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2005-04-18 20:40:34 +0000
commitf5373caf4e7a1384df44dd6b2c0e6d2bf0b7b15d (patch)
treedb26ed04b2346c075941a4fd548554a8e99be9ae /libjava/java
parent636423701a200b70a067327f5b5956619c215b3e (diff)
downloadgcc-f5373caf4e7a1384df44dd6b2c0e6d2bf0b7b15d.zip
gcc-f5373caf4e7a1384df44dd6b2c0e6d2bf0b7b15d.tar.gz
gcc-f5373caf4e7a1384df44dd6b2c0e6d2bf0b7b15d.tar.bz2
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
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/awt/AWTEvent.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/libjava/java/awt/AWTEvent.java b/libjava/java/awt/AWTEvent.java
index faa6dac..872feda 100644
--- a/libjava/java/awt/AWTEvent.java
+++ b/libjava/java/awt/AWTEvent.java
@@ -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;
}