This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: java.util.EventObject


This is a fix for EventObject against classpath. I'm going to commit
this to classpath and merge EventObject into libgcj, as it has the same
bug.

regards

  [ bryce ]


2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/util/EventObject.java (toString): Corrected output.

Index: EventObject.java
===================================================================
RCS file: /cvs/classpath/java/util/EventObject.java,v
retrieving revision 1.4
diff -u -r1.4 EventObject.java
--- EventObject.java	2000/10/24 10:07:49	1.4
+++ EventObject.java	2000/10/24 10:46:13
@@ -1,5 +1,5 @@
-/* EventObject.java
-   Copyright (C) 1999 Free Software Foundation, Inc.
+/* EventObject.java - Represent events fired by objects.
+   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
 
    This file is part of GNU Classpath.
 
@@ -29,6 +29,11 @@
 
 import java.io.Serializable;
 
+/**
+ * Represents Events fired by Objects.
+ *
+ * @see EventListener
+ */
 public class EventObject implements Serializable
 {
   private static final long serialVersionUID = 5516075349620653480L;
@@ -56,6 +61,6 @@
    */
   public String toString()
   {
-    return source.toString();
+    return this.getClass() + "[source=" + source.toString() + "]";
   }
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]