[jboss-jira] [JBoss JIRA] Created: (JBRULES-2917) matching of field==v1 || field==v2 breaks when variable binding is added

Wolfgang Laun (JIRA) jira-events at lists.jboss.org
Sun Mar 6 05:49:45 EST 2011


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


More information about the jboss-jira mailing list