1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Description: Workaround for a solved typing bug in IcedTea javac compiler
For a long time the javac had a bug with the handling of wildcard types
that results in a hole in the type system. Since IcedTea 1.8.2 the bug is
solved but it broke some code in this package. For more info, please
visit: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6638712
Author: Miguel Landaeta <miguel@miguel.cc>
Bug-Debian: http://bugs.debian.org/602362
Forwarded: not-needed
Last-Update: 2010-11-13
--- libjsr166y-java-0.1.20080107.orig/src/main/java/jsr166y/forkjoin/ParallelArray.java
+++ libjsr166y-java-0.1.20080107/src/main/java/jsr166y/forkjoin/ParallelArray.java
@@ -1654,13 +1654,13 @@ public class ParallelArray<T> implements
public WithFilter<T> withFilter(Predicate<? super T> selector) {
return new WithBoundedFilter<T>
(pa, firstIndex, upperBound,
- Ops.andPredicate(this.selector, selector));
+ Ops.andPredicate((Predicate)this.selector, selector));
}
public WithFilter<T> orFilter(Predicate<? super T> selector) {
return new WithBoundedFilter<T>
(pa, firstIndex, upperBound,
- Ops.orPredicate(this.selector, selector));
+ Ops.orPredicate((Predicate)this.selector, selector));
}
public <U> WithMapping<T, U> withMapping
|