changeset 42927 | 1d31e540bfcb |
parent 32991 | b27c76b82713 |
child 43522 | f9c6f543c4db |
--- a/jdk/src/java.base/share/classes/java/util/concurrent/DelayQueue.java Wed Dec 21 14:22:53 2016 -0800 +++ b/jdk/src/java.base/share/classes/java/util/concurrent/DelayQueue.java Wed Dec 21 14:26:52 2016 -0800 @@ -547,8 +547,7 @@ public E next() { if (cursor >= array.length) throw new NoSuchElementException(); - lastRet = cursor; - return (E)array[cursor++]; + return (E)array[lastRet = cursor++]; } public void remove() {