[rules-dev] compilation failure on trunk

Geoffrey De Smet ge0ffrey.spam at gmail.com
Tue Oct 6 12:53:22 EDT 2009


I've fixed it on trunk with this commit:
"compilation error on jdk 6 (not on jdk 5) because the ExectutorService 
interface in java 6 follows the Joshua Bloch PECS pattern (so 
Collection<? extends Callable...> instead of just Collection<Callable...>)"

See
http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/java/org/drools/concurrent/ExternalExecutorService.java?r1=29459&r2=29541

With kind regards,
Geoffrey De Smet


Geoffrey De Smet schreef:
> When I try "mvn clean install -DskipTests", I get this (java version 
> "1.6.0_16"):
> 
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> /home/ge0ffrey/projects/jboss/drools/drools-core/src/main/java/org/drools/concurrent/ExternalExecutorService.java:[31,7] 
> org.drools.concurrent.ExternalExecutorService is not abstract and does 
> not override abstract method <T>invokeAny(java.util.Collection<? extends 
> java.util.concurrent.Callable<T>>,long,java.util.concurrent.TimeUnit) in 
> java.util.concurrent.ExecutorService
> 
> 
> 
> /home/ge0ffrey/projects/jboss/drools/drools-core/src/main/java/org/drools/concurrent/ExternalExecutorService.java:[31,7] 
> org.drools.concurrent.ExternalExecutorService is not abstract and does 
> not override abstract method <T>invokeAny(java.util.Collection<? extends 
> java.util.concurrent.Callable<T>>,long,java.util.concurrent.TimeUnit) in 
> java.util.concurrent.ExecutorService
> 
> 



More information about the rules-dev mailing list