From 8cb5ee71923f70805d8b67418e9d098d640ff6c4 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Tue, 14 Jan 2003 21:44:48 +0000 Subject: [PATCH] 2003-01-14 Michael Koch * java/net/InetSocketAddress.java (serialVersionUID): New member variable. * java/net/NetPermission.java (NetPermission): Dont implement java.io.Serialization directly. * java/net/SocketAddress.java: (serialVersionUID): Documentation added. From-SVN: r61305 --- libjava/ChangeLog | 9 +++++++++ libjava/java/net/InetSocketAddress.java | 5 +++++ libjava/java/net/NetPermission.java | 1 - libjava/java/net/SocketAddress.java | 3 +++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 49de829240f..32b958904c6 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,12 @@ +2003-01-14 Michael Koch + + * java/net/InetSocketAddress.java + (serialVersionUID): New member variable. + * java/net/NetPermission.java + (NetPermission): Dont implement java.io.Serialization directly. + * java/net/SocketAddress.java: + (serialVersionUID): Documentation added. + 2003-01-14 Michael Koch * java/awt/Label.java diff --git a/libjava/java/net/InetSocketAddress.java b/libjava/java/net/InetSocketAddress.java index 1b740dcc507..3c54b51a0f0 100644 --- a/libjava/java/net/InetSocketAddress.java +++ b/libjava/java/net/InetSocketAddress.java @@ -47,6 +47,11 @@ package java.net; public class InetSocketAddress extends SocketAddress { + /** + * Compatible with JDK 1.4+ + */ + private static final long serialVersionUID = 5076001401234631237L; + String hostname; InetAddress addr; int port; diff --git a/libjava/java/net/NetPermission.java b/libjava/java/net/NetPermission.java index f5b625a0d6f..5b9502b7abe 100644 --- a/libjava/java/net/NetPermission.java +++ b/libjava/java/net/NetPermission.java @@ -48,7 +48,6 @@ import java.security.BasicPermission; * @author Aaron M. Renn (arenn@urbanophile.com) */ public final class NetPermission extends BasicPermission - implements java.io.Serializable { static final long serialVersionUID = -8343910153355041693L; diff --git a/libjava/java/net/SocketAddress.java b/libjava/java/net/SocketAddress.java index 370049d6fdc..f3e67d84cc0 100644 --- a/libjava/java/net/SocketAddress.java +++ b/libjava/java/net/SocketAddress.java @@ -48,6 +48,9 @@ import java.io.Serializable; */ public abstract class SocketAddress implements Serializable { + /** + * Compatible with JDK 1.4+ + */ static final long serialVersionUID = 5215720748342549866L; /**