ConnectionEvent.java (serialVersionUID): New field.
authorTom Tromey <tromey@redhat.com>
Tue, 11 Feb 2003 05:13:14 +0000 (05:13 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 11 Feb 2003 05:13:14 +0000 (05:13 +0000)
* javax/sql/ConnectionEvent.java (serialVersionUID): New field.
(ex): Renamed from sqlException.

From-SVN: r62678

libjava/ChangeLog
libjava/javax/sql/ConnectionEvent.java

index 4dfe820cd302dd2a0ed878c43af376df7199705f..aee1d641833f9eba6ebcdd8b18dd8a850991639e 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-10  Tom Tromey  <tromey@redhat.com>
+
+       * javax/sql/ConnectionEvent.java (serialVersionUID): New field.
+       (ex): Renamed from sqlException.
+
 2003-02-10  Raif S. Naffah  <raif@fl.net.au>
 
        * gnu/java/security/provider/SHA1PRNG.java (ensureIsSeeded): new 
index 1c4b5ef5b71dadfddb30e54fe8d1feafe7900e86..b973dca3dc3ae4314a12e3be41cc3e3922a8244b 100644 (file)
@@ -1,5 +1,5 @@
 /* ConnectionEvent.java 
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -46,8 +46,11 @@ import java.util.EventObject;
  */
 public class ConnectionEvent extends EventObject 
 {
-  private SQLException sqlException;
-  
+  private static final long serialVersionUID = -4843217645290030002L;
+
+  // Note that the name is chosen for serialization.
+  private SQLException ex;
+
   /**
    * @since 1.4
    */
@@ -62,7 +65,7 @@ public class ConnectionEvent extends EventObject
   public ConnectionEvent(PooledConnection con, SQLException ex)
   {
     super(con);
-    this.sqlException = ex;
+    this.ex = ex;
   }
 
   /**
@@ -70,6 +73,6 @@ public class ConnectionEvent extends EventObject
    */
   public SQLException getSQLException()
   {
-    return sqlException;
+    return ex;
   }
 }