-
Bug
-
Resolution: Fixed
-
P2
-
6u30
-
b08
-
b25
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2223413 | 6u34 | Dmeetry Degrave | P2 | Resolved | Fixed | b01 |
JDK-2223412 | 6u33 | Dmeetry Degrave | P2 | Resolved | Fixed | b31 |
JDK-2223411 | 6u32 | Dmeetry Degrave | P2 | Resolved | Fixed | b31 |
During backporting test fixes was found product issue which was hidden by test error.
Method remove() from ArrayBlockingQueue's iterator work incorrectly
if delete no first element. For example:
import java.util.Iterator;
import java.util.concurrent.ArrayBlockingQueue;
public class ABQueue {
public static void main(String[] args) throws Exception {
ArrayBlockingQueue<Integer> queue = new ArrayBlockingQueue<Integer>(3);
queue.add(1);
queue.add(2);
queue.add(3);
System.out.println("Size before: "+queue.size());
Iterator<Integer> i = queue.iterator();
i.next();
i.next();
i.remove();
i.next();
i.remove();
System.out.println("Size after: "+queue.size());
}
}
Results for 1.6.0_29b11:
java.exe ABQueue
Size before: 3
Size after: 1
Results for 1.6.0_30b12:
java.exe ABQueue
Size before: 3
Size after: 2
Method remove() from ArrayBlockingQueue's iterator work incorrectly
if delete no first element. For example:
import java.util.Iterator;
import java.util.concurrent.ArrayBlockingQueue;
public class ABQueue {
public static void main(String[] args) throws Exception {
ArrayBlockingQueue<Integer> queue = new ArrayBlockingQueue<Integer>(3);
queue.add(1);
queue.add(2);
queue.add(3);
System.out.println("Size before: "+queue.size());
Iterator<Integer> i = queue.iterator();
i.next();
i.next();
i.remove();
i.next();
i.remove();
System.out.println("Size after: "+queue.size());
}
}
Results for 1.6.0_29b11:
java.exe ABQueue
Size before: 3
Size after: 1
Results for 1.6.0_30b12:
java.exe ABQueue
Size before: 3
Size after: 2
- backported by
-
JDK-2223411 Error in method Iterator.remove() from ArrayBlockingQueue
- Resolved
-
JDK-2223412 Error in method Iterator.remove() from ArrayBlockingQueue
- Resolved
-
JDK-2223413 Error in method Iterator.remove() from ArrayBlockingQueue
- Resolved
- relates to
-
JDK-7160577 CR 7145112 not fixed in 6u32
- Closed
-
JDK-7014263 NegativeArraySizeException reported in ArrayBlockingQueue under load
- Closed