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

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

# Line 27 | Line 27
27   * @summary Test for illegal argument exception
28   */
29  
30 < import java.util.*;
30 > import java.util.Vector;
31  
32   /**
33   * This is a simple test class created to check for
# Line 36 | Line 36 | import java.util.*;
36   */
37   public class IllegalConstructorArgs {
38  
39 <      public static void main(String argv[]) {
40 <          int testSucceeded=0;
39 >    public static void main(String[] args) {
40 >        int testSucceeded=0;
41  
42 <        try{
43 <           // this should generate an IllegalArgumentException
44 <           Vector bad1 = new Vector(-100, 10);
42 >        try {
43 >            // this should generate an IllegalArgumentException
44 >            Vector bad1 = new Vector(-100, 10);
45          }
46          catch (IllegalArgumentException e1) {
47              testSucceeded =1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines