ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Vector/ComodifiedRemoveAllElements.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Vector/ComodifiedRemoveAllElements.java (file contents):
Revision 1.2 by jsr166, Sun Sep 5 21:32:20 2010 UTC vs.
Revision 1.4 by jsr166, Mon Feb 18 03:15:10 2013 UTC

# Line 25 | Line 25
25   * @test
26   * @bug 4298133
27   * @summary Due to a bug in Vector's removeAllElements(),
28 < *          the modification counter  would not get incremented.
28 > *          the modification counter would not get incremented.
29   * @author Konstantin Kladko
30   */
31  
# Line 37 | Line 37 | public class ComodifiedRemoveAllElements
37          v.addElement(null);
38          Iterator it = v.iterator();
39          v.removeAllElements();
40 <        try{
40 >        try {
41              it.next();
42          } catch (ConcurrentModificationException cme) {
43              return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines