matching of field==v1 || field==v2 breaks when variable binding is added
------------------------------------------------------------------------
Key: JBRULES-2917
URL:
https://issues.jboss.org/browse/JBRULES-2917
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.2.0.M1
Reporter: Wolfgang Laun
Assignee: Mark Proctor
Priority: Critical
Fix For: 5.2.0.M1
class Assignment { Class source, target; }
The following rule fails to match when target == java.lang.Object.class
rule ObjectIsAssignable
when
Assignment( $t: target == (java.lang.Object.class) || target == source )
then
end
The following rule fails to match when target == source
rule ObjectIsAssignable
when
Assignment( $t: target == source || target == (java.lang.Object.class) )
then
end
The error does not occur if the binding ($t) is omitted.
See Workaround.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira