commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hen...@apache.org
Subject svn commit: r896912 - /commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java
Date Thu, 07 Jan 2010 16:05:20 GMT
Author: henrib
Date: Thu Jan  7 16:04:40 2010
New Revision: 896912

URL: http://svn.apache.org/viewvc?rev=896912&view=rev
Log:
Fix for Java 1.5 in MT test; changed tasks list declaration.
Cause:
In Java 5, the method is declared as:
ExecutorService#invokeAll(Collection<Callable<T>> tasks)
In Java 6, the method is declared as:
ExecutorService#invokeAll(Collection<? extends Callable<T>> tasks)

Modified:
    commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java

Modified: commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java?rev=896912&r1=896911&r2=896912&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java (original)
+++ commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java Thu Jan
 7 16:04:40 2010
@@ -282,7 +282,7 @@
             jexl.setCache(0);
         }
         java.util.concurrent.ExecutorService execs = java.util.concurrent.Executors.newFixedThreadPool(NTHREADS);
-        List<Task> tasks = new ArrayList<Task>(NTHREADS);
+        List<Callable<Integer>> tasks = new ArrayList<Callable<Integer>>(NTHREADS);
         for(int t = 0; t < NTHREADS; ++t) {
             tasks.add(jexl.newInstance(ctask, loops));
         }



Mime
View raw message