Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
-
None
-
Low
Description
See below, on a fresh clone. Builds w/ java 6.
[javac] /tmp/c2/cassandra/src/java/org/apache/cassandra/io/sstable/SSTableReader.java:419: error: no suitable method found for binarySearch(List<DecoratedKey>,RowPosition) [javac] int index = Collections.binarySearch(indexSummary.getKeys(), key); [javac] ^ [javac] method Collections.<T#1>binarySearch(List<? extends T#1>,T#1,Comparator<? super T#1>) is not applicable [javac] (cannot instantiate from arguments because actual and formal argument lists differ in length) [javac] method Collections.<T#2>binarySearch(List<? extends Comparable<? super T#2>>,T#2) is not applicable [javac] (no instance(s) of type variable(s) T#2 exist so that argument type List<DecoratedKey> conforms to formal parameter type List<? extends Comparable<? super T#2>>) [javac] where T#1,T#2 are type-variables: [javac] T#1 extends Object declared in method <T#1>binarySearch(List<? extends T#1>,T#1,Comparator<? super T#1>) [javac] T#2 extends Object declared in method <T#2>binarySearch(List<? extends Comparable<? super T#2>>,T#2) [javac] /tmp/c2/cassandra/src/java/org/apache/cassandra/io/sstable/SSTableReader.java:509: error: no suitable method found for binarySearch(List<DecoratedKey>,RowPosition) [javac] int left = Collections.binarySearch(samples, leftPosition); [javac] ^ [javac] method Collections.<T#1>binarySearch(List<? extends T#1>,T#1,Comparator<? super T#1>) is not applicable [javac] (cannot instantiate from arguments because actual and formal argument lists differ in length) [javac] method Collections.<T#2>binarySearch(List<? extends Comparable<? super T#2>>,T#2) is not applicable [javac] (no instance(s) of type variable(s) T#2 exist so that argument type List<DecoratedKey> conforms to formal parameter type List<? extends Comparable<? super T#2>>) [javac] where T#1,T#2 are type-variables: [javac] T#1 extends Object declared in method <T#1>binarySearch(List<? extends T#1>,T#1,Comparator<? super T#1>) [javac] T#2 extends Object declared in method <T#2>binarySearch(List<? extends Comparable<? super T#2>>,T#2) [javac] /tmp/c2/cassandra/src/java/org/apache/cassandra/io/sstable/SSTableReader.java:521: error: no suitable method found for binarySearch(List<DecoratedKey>,RowPosition) [javac] : Collections.binarySearch(samples, rightPosition); [javac] ^ [javac] method Collections.<T#1>binarySearch(List<? extends T#1>,T#1,Comparator<? super T#1>) is not applicable [javac] (cannot instantiate from arguments because actual and formal argument lists differ in length) [javac] method Collections.<T#2>binarySearch(List<? extends Comparable<? super T#2>>,T#2) is not applicable [javac] (no instance(s) of type variable(s) T#2 exist so that argument type List<DecoratedKey> conforms to formal parameter type List<? extends Comparable<? super T#2>>) [javac] where T#1,T#2 are type-variables: [javac] T#1 extends Object declared in method <T#1>binarySearch(List<? extends T#1>,T#1,Comparator<? super T#1>) [javac] T#2 extends Object declared in method <T#2>binarySearch(List<? extends Comparable<? super T#2>>,T#2)