equal
deleted
inserted
replaced
26 * @bug 4189896 |
26 * @bug 4189896 |
27 * @summary AbstractList iterators previously checked for co-modification |
27 * @summary AbstractList iterators previously checked for co-modification |
28 * *after* the set/add/remove operations were performed. |
28 * *after* the set/add/remove operations were performed. |
29 */ |
29 */ |
30 |
30 |
31 import java.util.*; |
31 import java.util.ArrayList; |
|
32 import java.util.ConcurrentModificationException; |
|
33 import java.util.List; |
|
34 import java.util.ListIterator; |
32 |
35 |
33 public class FailFastIterator { |
36 public class FailFastIterator { |
34 public static void main(String[] args) throws Exception { |
37 public static void main(String[] args) throws Exception { |
35 List orig = new ArrayList(100); |
38 List orig = new ArrayList(100); |
36 for (int i=0; i<100; i++) |
39 for (int i=0; i<100; i++) |