Geoffrey,

    Java 6 API change was not source backward compatible with Java 5. Drools 5.1m1 is supposed to compile only with Java 5.

    We will probably move to Java 6 for the next milestone, since Java 5 is EOL this month anyway, but you need to rollback your change meanwhile.

    To compile trunk with Java 6, for now you have to use "-source 1.5".

    Edson


2009/10/6 Geoffrey De Smet <ge0ffrey.spam@gmail.com>
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
>
>

_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev



--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com