<br> Geoffrey,<br><br> Java 6 API change was not source backward compatible with Java 5. Drools 5.1m1 is supposed to compile only with Java 5. <br><br> 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. <br>
<br> To compile trunk with Java 6, for now you have to use "-source 1.5".<br><br> Edson<br><br><br><div class="gmail_quote">2009/10/6 Geoffrey De Smet <span dir="ltr"><<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I've fixed it on trunk with this commit:<br>
"compilation error on jdk 6 (not on jdk 5) because the ExectutorService<br>
interface in java 6 follows the Joshua Bloch PECS pattern (so<br>
Collection<? extends Callable...> instead of just Collection<Callable...>)"<br>
<br>
See<br>
<a href="http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/java/org/drools/concurrent/ExternalExecutorService.java?r1=29459&r2=29541" target="_blank">http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/java/org/drools/concurrent/ExternalExecutorService.java?r1=29459&r2=29541</a><br>
<div class="im"><br>
With kind regards,<br>
Geoffrey De Smet<br>
<br>
<br>
</div><font color="#888888">Geoffrey De Smet schreef:<br>
</font><div class="im">> When I try "mvn clean install -DskipTests", I get this (java version<br>
> "1.6.0_16"):<br>
><br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [ERROR] BUILD FAILURE<br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [INFO] Compilation failure<br>
> /home/ge0ffrey/projects/jboss/drools/drools-core/src/main/java/org/drools/concurrent/ExternalExecutorService.java:[31,7]<br>
> org.drools.concurrent.ExternalExecutorService is not abstract and does<br>
> not override abstract method <T>invokeAny(java.util.Collection<? extends<br>
> java.util.concurrent.Callable<T>>,long,java.util.concurrent.TimeUnit) in<br>
> java.util.concurrent.ExecutorService<br>
><br>
><br>
><br>
> /home/ge0ffrey/projects/jboss/drools/drools-core/src/main/java/org/drools/concurrent/ExternalExecutorService.java:[31,7]<br>
> org.drools.concurrent.ExternalExecutorService is not abstract and does<br>
> not override abstract method <T>invokeAny(java.util.Collection<? extends<br>
> java.util.concurrent.Callable<T>>,long,java.util.concurrent.TimeUnit) in<br>
> java.util.concurrent.ExecutorService<br>
><br>
><br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>