File: 01_workaround_typing_bug.diff

package info (click to toggle)
libjsr166y-java 0.1.20080107-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 904 kB
  • ctags: 2,811
  • sloc: java: 11,474; xml: 13; sh: 11; makefile: 8
file content (28 lines) | stat: -rw-r--r-- 1,414 bytes parent folder | download
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