Toshiya Kobayashi created DROOLS-5920:
-----------------------------------------
Summary: Wrong BetaIndex offset with Or in executable-model
Key: DROOLS-5920
URL:
https://issues.redhat.com/browse/DROOLS-5920
Project: Drools
Issue Type: Bug
Components: executable model
Affects Versions: 7.47.0.Final
Reporter: Toshiya Kobayashi
Assignee: Toshiya Kobayashi
Fix for DROOLS-5916 was not enough. LambdaConstraint.indexingDeclaration needs to be
updated when an original Declaration is replaced. If not, betaIndex uses a wrong offset to
retrieve a fact from a tuple.
This rule can reproduce the offset problem.
{noformat}
import org.drools.modelcompiler.domain.Person;rule R when
$e : Person(name == "Edson")
$p : Person(name == "Mark") or
( $mark : Person(name == "Mark")
and
$p : Person(age == $mark.age) )
$s: String(this == $p.name)
then
System.out.println("Found: " + $s);
end
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)