30 |
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 |
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 |
31 |
* "The Java Language Specification", ISBN 0-201-63451-1 |
* "The Java Language Specification", ISBN 0-201-63451-1 |
32 |
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com. |
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com. |
|
* Status: Believed complete and correct. |
|
33 |
*/ |
*/ |
34 |
|
|
35 |
/** |
/** |
37 |
* a modification has been made to a data structure when this is not allowed, |
* a modification has been made to a data structure when this is not allowed, |
38 |
* such as when a collection is structurally modified while an Iterator is |
* such as when a collection is structurally modified while an Iterator is |
39 |
* operating over it. In cases where this can be detected, a |
* operating over it. In cases where this can be detected, a |
40 |
* ConcurrentModificationException will be thrown. An Iterator that detects this |
* ConcurrentModificationException will be thrown. An Iterator that detects |
41 |
* condition is referred to as fail-fast. |
* this condition is referred to as fail-fast. Notice that this can occur |
42 |
|
* even in single-threaded designs, if you call methods out of order. |
43 |
* |
* |
44 |
* @author Warren Levy <warrenl@cygnus.com> |
* @author Warren Levy <warrenl@cygnus.com> |
45 |
* @date September 2, 1998. |
* @author Eric Blake <ebb9@email.byu.edu> |
46 |
|
* @see Collection |
47 |
|
* @see Iterator |
48 |
|
* @see ListIterator |
49 |
|
* @see Vector |
50 |
|
* @see LinkedList |
51 |
|
* @see HashSet |
52 |
|
* @see Hashtable |
53 |
|
* @see TreeMap |
54 |
|
* @see AbstractList |
55 |
* @since 1.2 |
* @since 1.2 |
56 |
|
* @status updated to 1.4 |
57 |
*/ |
*/ |
58 |
public class ConcurrentModificationException extends RuntimeException |
public class ConcurrentModificationException extends RuntimeException |
59 |
{ |
{ |
60 |
|
/** |
61 |
|
* Compatible with JDK 1.2. |
62 |
|
*/ |
63 |
private static final long serialVersionUID = -3666751008965953603L; |
private static final long serialVersionUID = -3666751008965953603L; |
64 |
|
|
65 |
/** |
/** |
67 |
*/ |
*/ |
68 |
public ConcurrentModificationException() |
public ConcurrentModificationException() |
69 |
{ |
{ |
|
super(); |
|
70 |
} |
} |
71 |
|
|
72 |
/** |
/** |