From 05502144b671ceade487a8b6b3ab35859ae4469a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 30 Aug 2004 16:45:04 +0000 Subject: [PATCH] UID.java (UID): Read `nextCount', not count. 2004-08-30 Tom Tromey * java/rmi/server/UID.java (UID): Read `nextCount', not count. From-SVN: r86785 --- libjava/ChangeLog | 4 ++++ libjava/java/rmi/server/UID.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0679c021984..44d9ce4f1f9 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2004-08-30 Tom Tromey + + * java/rmi/server/UID.java (UID): Read `nextCount', not count. + 2004-08-30 Andreas Tobler * gnu/java/security/der/DEREncodingException.java: Remove whitespaces. diff --git a/libjava/java/rmi/server/UID.java b/libjava/java/rmi/server/UID.java index a88cb8b08e0..4c8a04110a8 100644 --- a/libjava/java/rmi/server/UID.java +++ b/libjava/java/rmi/server/UID.java @@ -1,5 +1,5 @@ /* - Copyright (c) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (c) 1996, 1997, 1998, 1999, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -65,7 +65,7 @@ private short count; */ public UID() { synchronized (lock) { - if (count == Short.MAX_VALUE) { + if (nextCount == Short.MAX_VALUE) { long newtime; for (;;) { newtime = System.currentTimeMillis(); -- 2.30.2