equal
deleted
inserted
replaced
26 * @bug 4189821 |
26 * @bug 4189821 |
27 * @summary HashMap's entry.toString threw a null pointer exc if the HashMap |
27 * @summary HashMap's entry.toString threw a null pointer exc if the HashMap |
28 * contained null keys or values. |
28 * contained null keys or values. |
29 */ |
29 */ |
30 |
30 |
31 import java.util.*; |
31 import java.util.HashMap; |
|
32 import java.util.Map; |
32 |
33 |
33 public class ToString { |
34 public class ToString { |
34 public static void main(String[] args) throws Exception { |
35 public static void main(String[] args) throws Exception { |
35 Map m = new HashMap(); |
36 Map m = new HashMap(); |
36 m.put(null, null); |
37 m.put(null, null); |