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

Comparing jsr166/src/test/jtreg/util/Vector/LastIndexOf.java (file contents):
Revision 1.2 by jsr166, Sun Sep 5 21:32:20 2010 UTC vs.
Revision 1.5 by jsr166, Sun Oct 22 02:59:18 2017 UTC

# Line 22 | Line 22
22   */
23  
24   /*
25 <   @test
26 <   @bug 4271588
27 <   @summary Vector.lastIndex(Object, int) used to let you look outside the
28 <            valid range in the backing array
25 > * @test
26 > * @bug 4271588
27 > * @summary Vector.lastIndex(Object, int) used to let you look outside the
28 > *          valid range in the backing array
29   */
30  
31   import java.util.*;
32  
33   public class LastIndexOf {
34 <    public static void main(String argv[]) throws Exception {
34 >    public static void main(String[] args) throws Exception {
35          Vector v = new Vector(10);
36  
37 <        try{
37 >        try {
38              int i = v.lastIndexOf(null, 5);
39              throw new Exception("lastIndexOf(5/10) " + i);
40          } catch (IndexOutOfBoundsException e) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines