From f5373caf4e7a1384df44dd6b2c0e6d2bf0b7b15d Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Mon, 18 Apr 2005 20:40:34 +0000 Subject: [PATCH] AWTEvent.java (toString): Added case for source not being an AWT component. 2005-04-18 Robert Schuster * java/awt/AWTEvent.java (toString): Added case for source not being an AWT component. From-SVN: r98346 --- libjava/ChangeLog | 5 +++++ libjava/java/awt/AWTEvent.java | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index e57e004..3e9ba57 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2005-04-18 Robert Schuster + + * java/awt/AWTEvent.java (toString): Added case + for source not being an AWT component. + 2005-04-18 Chris Burdess * gnu/java/net/BASE64.java: Truncate encoded byte array. 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; } -- 2.7.4