mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
UID.java (UID): Read `nextCount', not count.
2004-08-30 Tom Tromey <tromey@redhat.com> * java/rmi/server/UID.java (UID): Read `nextCount', not count. From-SVN: r86785
This commit is contained in:
committed by
Andreas Tobler
parent
d92a3b384c
commit
05502144b6
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user