equal
deleted
inserted
replaced
26 * @bug 6612102 |
26 * @bug 6612102 |
27 * @summary Test Map implementations for mutual compatibility |
27 * @summary Test Map implementations for mutual compatibility |
28 * @key randomness |
28 * @key randomness |
29 */ |
29 */ |
30 |
30 |
31 import java.util.*; |
31 import java.util.Arrays; |
32 import java.util.concurrent.*; |
32 import java.util.Collections; |
|
33 import java.util.HashMap; |
|
34 import java.util.Hashtable; |
|
35 import java.util.IdentityHashMap; |
|
36 import java.util.Iterator; |
|
37 import java.util.LinkedHashMap; |
|
38 import java.util.List; |
|
39 import java.util.Map; |
|
40 import java.util.Random; |
|
41 import java.util.TreeMap; |
|
42 import java.util.WeakHashMap; |
|
43 import java.util.concurrent.ConcurrentHashMap; |
|
44 import java.util.concurrent.ConcurrentSkipListMap; |
33 |
45 |
34 /** |
46 /** |
35 * Based on the strange scenario required to reproduce |
47 * Based on the strange scenario required to reproduce |
36 * (coll) IdentityHashMap.iterator().remove() might decrement size twice |
48 * (coll) IdentityHashMap.iterator().remove() might decrement size twice |
37 * |
49 * |