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.4 by jsr166, Sat Oct 16 16:00:28 2010 UTC vs.
Revision 1.5 by jsr166, Sat Oct 21 00:41:14 2017 UTC

# 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 argv[]) {
40 >        int testSucceeded=0;
41  
42          try {
43 <           // this should generate an IllegalArgumentException
44 <           Vector bad1 = new Vector(-100, 10);
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