]
RH Bugzilla Integration commented on DROOLS-1037:
-------------------------------------------------
Mario Fusco <mfusco(a)redhat.com> changed the Status of [bug
Parsing of a complex constraint with an || causes a RuntimeException
--------------------------------------------------------------------
Key: DROOLS-1037
URL:
https://issues.jboss.org/browse/DROOLS-1037
Project: Drools
Issue Type: Bug
Reporter: Mario Fusco
Assignee: Mario Fusco
Fix For: 6.4.0.CR1
Trying to compile a rule like the following
{code}
rule R when
$p : Person( name == null || (name in (\"Alice\", \"Charlie\",
\"David\"))==false )
then
list.add($p.getName());
end
{code}
causes the following RuntimeException:
{code}
java.lang.RuntimeException
at
org.drools.compiler.rule.builder.PatternBuilder.rewriteCompositeExpressions(PatternBuilder.java:924)
at
org.drools.compiler.rule.builder.PatternBuilder.rewriteCompositeExpressions(PatternBuilder.java:919)
at
org.drools.compiler.rule.builder.PatternBuilder.rewriteOrExpressions(PatternBuilder.java:893)
at
org.drools.compiler.rule.builder.PatternBuilder.buildExpression(PatternBuilder.java:889)
at
org.drools.compiler.rule.builder.PatternBuilder.buildCcdDescr(PatternBuilder.java:860)
at org.drools.compiler.rule.builder.PatternBuilder.build(PatternBuilder.java:715)
at
org.drools.compiler.rule.builder.PatternBuilder.processConstraintsAndBinds(PatternBuilder.java:580)
{code}