From: Robert Schuster Date: Mon, 18 Apr 2005 20:40:34 +0000 (+0000) Subject: AWTEvent.java (toString): Added case for source not being an AWT component. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5373caf4e7a1384df44dd6b2c0e6d2bf0b7b15d;p=platform%2Fupstream%2Fgcc.git 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 --- 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; }