> To compile trunk with Java 6, for now you have to use "-source 1.5".
That doesn't work, as the maven compiler plugin is already set to use source 1.5 in the main pom and I can't compile with jdk 6. It can only be compiled with jdk 5 it seems, not jdk 6. With kind regards, Geoffrey De Smet Edson Tirelli schreef: > > 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 <[email protected] > <mailto:[email protected]>> > > 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 > > <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 > [email protected] <mailto:[email protected]> > https://lists.jboss.org/mailman/listinfo/rules-dev > > > > > -- > Edson Tirelli > JBoss Drools Core Development > JBoss by Red Hat @ www.jboss.com <http://www.jboss.com> > > > ------------------------------------------------------------------------ > > _______________________________________________ > rules-dev mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-dev _______________________________________________ rules-dev mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-dev
