This is the mail archive of the java-patches@sourceware.cygnus.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.security cleanup


Here's a small patch following up on Bryce's catch.
--warrenl

2000-03-09  Warren Levy  <warrenl@cygnus.com>

        * java/security/Key.java(serialVersionUID): Set to 0 for now.
        * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
        * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.


Index: java/security/Key.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/security/Key.java,v
retrieving revision 1.1
diff -u -p -r1.1 Key.java
--- Key.java	2000/03/10 02:43:56	1.1
+++ Key.java	2000/03/10 05:07:32
@@ -21,7 +21,7 @@ import java.io.Serializable;
 public interface Key extends Serializable
 {
   // FIXME: need to set this at some point when serialization is implemented.
-  public static final long serialVersionUID;
+  public static final long serialVersionUID = 0;
 
   public String getAlgorithm();
   public String getFormat();
Index: java/security/interfaces/DSAPrivateKey.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/security/interfaces/DSAPrivateKey.java,v
retrieving revision 1.1
diff -u -p -r1.1 DSAPrivateKey.java
--- DSAPrivateKey.java	2000/03/10 02:43:57	1.1
+++ DSAPrivateKey.java	2000/03/10 05:07:32
@@ -21,7 +21,8 @@ import java.math.BigInteger;
  
 public interface DSAPrivateKey extends DSAKey, PrivateKey
 {
-  public static final long serialVersionUID;
+  // FIXME: need to set this at some point when serialization is implemented.
+  public static final long serialVersionUID = 0;
 
   public BigInteger getX();
 }
Index: java/security/interfaces/DSAPublicKey.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/security/interfaces/DSAPublicKey.java,v
retrieving revision 1.1
diff -u -p -r1.1 DSAPublicKey.java
--- DSAPublicKey.java	2000/03/10 02:43:57	1.1
+++ DSAPublicKey.java	2000/03/10 05:07:32
@@ -21,7 +21,8 @@ import java.math.BigInteger;
  
 public interface DSAPublicKey extends DSAKey, PublicKey
 {
-  public static final long serialVersionUID;
+  // FIXME: need to set this at some point when serialization is implemented.
+  public static final long serialVersionUID = 0;
 
   public BigInteger getY();
 }



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