author | mcimadamore |
Wed, 23 Jan 2013 15:08:03 +0000 | |
changeset 15383 | ee0b5f7f41b1 |
permissions | -rw-r--r-- |
15383
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
1 |
/* |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
2 |
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
4 |
* |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
8 |
* |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
13 |
* accompanied this code). |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
14 |
* |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
18 |
* |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
21 |
* questions. |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
22 |
*/ |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
23 |
|
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
24 |
/** |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
25 |
* @test |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
26 |
* @bug 8006692 |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
27 |
* @summary jdk/test/java/util/Collections/BigBinarySearch.java fails to compile |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
28 |
* @compile T8006692.java |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
29 |
*/ |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
30 |
|
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
31 |
import java.util.*; |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
32 |
|
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
33 |
class Test { |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
34 |
static void test(List<Integer> l, int i) { |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
35 |
equal(i, Collections.binarySearch(l, l.get(i))); |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
36 |
} |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
37 |
static void equal(Object x, Object y) {} |
ee0b5f7f41b1
8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
mcimadamore
parents:
diff
changeset
|
38 |
} |