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:
parent
d92a3b384c
commit
05502144b6
2 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue