aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-01-14 21:44:48 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-01-14 21:44:48 +0000
commit8cb5ee71923f70805d8b67418e9d098d640ff6c4 (patch)
tree00e34fa60c6e962eee62459f156443f99f4d9f48
parenta7189b490f153fe449c45171f9f35e6a60353e57 (diff)
downloadgcc-8cb5ee71923f70805d8b67418e9d098d640ff6c4.zip
gcc-8cb5ee71923f70805d8b67418e9d098d640ff6c4.tar.gz
gcc-8cb5ee71923f70805d8b67418e9d098d640ff6c4.tar.bz2
2003-01-14 Michael Koch <konqueror@gmx.de>
* 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
-rw-r--r--libjava/ChangeLog9
-rw-r--r--libjava/java/net/InetSocketAddress.java5
-rw-r--r--libjava/java/net/NetPermission.java1
-rw-r--r--libjava/java/net/SocketAddress.java3
4 files changed, 17 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 49de829..32b9589 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,14 @@
2003-01-14 Michael Koch <konqueror@gmx.de>
+ * 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 <konqueror@gmx.de>
+
* java/awt/Label.java
(Label): Implements javax.accessibility.Accessible;
* java/awt/List.java
diff --git a/libjava/java/net/InetSocketAddress.java b/libjava/java/net/InetSocketAddress.java
index 1b740dc..3c54b51 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 f5b625a..5b9502b 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 370049d..f3e67d8 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;
/**