[
https://issues.jboss.org/browse/JBRULES-2983?page=com.atlassian.jira.plug...
]
Wolfgang Laun commented on JBRULES-2983:
----------------------------------------
Here's the stack dump:
Exception in thread "main" java.lang.IndexOutOfBoundsException: Error trying to
access field at position 0
at org.drools.factmodel.ClassDefinition.getField(ClassDefinition.java:160)
at org.drools.rule.builder.PatternBuilder.processPositional(PatternBuilder.java:304)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:188)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:61)
at org.drools.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:65)
at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:80)
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)
at ex50.SalesProcessor.execute(SalesProcessor.java:31)
at ex50.SalesProcessor.main(SalesProcessor.java:103)
IooB exception when using positional notation on pojo fact
----------------------------------------------------------
Key: JBRULES-2983
URL:
https://issues.jboss.org/browse/JBRULES-2983
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.2.0.CR1
Reporter: Wolfgang Laun
Assignee: Mark Proctor
If Sale is a Java class containing int custid and int amount, the following pattern
crashes the builder:
query bigSales ( int $custid, int $limit )
$s: Sale( $custid; amount >= $limit )
end
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira