No, Drools 5.2 remains Java 1.5 compatible. The error you report has already
been identified and AFAIK fixed in master.
sent on the move
On 8 May 2011 16:14, "style.x7" <style.x7(a)gmail.com> wrote:
Hi all,
I'm just trying out the default Drools project created with Eclipse plugin
but already getting errors:
java.lang.NoSuchMethodError:
java.util.LinkedList.peekLast()Ljava/lang/Object;
at
org.drools.rule.builder.dialect.java.parser.JavaParser.addBlockDescr(JavaParser.java:249)
at
org.drools.rule.builder.dialect.java.parser.JavaParser.updateStatement(JavaParser.java:6934)
at
org.drools.rule.builder.dialect.java.parser.JavaParser.statement(JavaParser.java:6117)
at
org.drools.rule.builder.dialect.java.parser.JavaParser.blockStatement(JavaParser.java:5733)
at
org.drools.rule.builder.dialect.java.parser.JavaParser.block(JavaParser.java:5662)
at
org.drools.rule.builder.dialect.java.JavaExprAnalyzer.analyzeBlock(JavaExprAnalyzer.java:92)
at
org.drools.rule.builder.dialect.java.JavaDialect.analyzeBlock(JavaDialect.java:258)
at
org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build(JavaConsequenceBuilder.java:90)
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:98)
> at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:1546)
> at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:653)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:295)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:471)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
...
peekLast() is a JDK 1.6 method.. so does that means from Drools 5.2x
onwards, I have to upgrade my JDK? Which sadly I can't cause my company is
using OSX Leopard, stuck with JDK 1.5 :(
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-5-2-0-M2-is-not-compatible-with-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users