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

Comparing jsr166/src/test/jtreg/util/Vector/CopyInto.java (file contents):
Revision 1.2 by jsr166, Sun Sep 5 21:32:20 2010 UTC vs.
Revision 1.4 by jsr166, Mon Jan 8 03:12:03 2018 UTC

# Line 28 | Line 28
28   * @author Martin Buchholz
29   */
30  
31 < import java.io.*;
32 < import java.util.*;
33 < import java.util.concurrent.*;
34 < import java.util.concurrent.atomic.*;
31 > import java.util.Vector;
32  
33   public class CopyInto {
34      private static void realMain(String[] args) throws Throwable {
35          try {
36 <            Vector<String> v = new Vector<String>();
36 >            Vector<String> v = new Vector<>();
37              v.add("foo");
38              v.copyInto(new Integer[3]);
39              fail("Expected ArrayStoreException");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines