[jboss-jira] [JBoss JIRA] (DROOLS-51) Cannot use null as value for a positional constraint

Mario Fusco (JIRA) jira-events at lists.jboss.org
Fri Feb 22 11:22:56 EST 2013


Mario Fusco created DROOLS-51:
---------------------------------

             Summary: Cannot use null as value for a positional constraint
                 Key: DROOLS-51
                 URL: https://issues.jboss.org/browse/DROOLS-51
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Mario Fusco
            Assignee: Mario Fusco


The following DRL generates an infinite loop, while it works correctly if you replace the positional constraint with a normal one as in the commented pattern.

{code}
declare Outer
end

declare Inner
  outer : Outer
end

rule "Init"
when
then
  insert( new Inner( null ) );
  insert( new Outer( ) );
end

rule "Bind"
when
  $o : Outer(  )
  $i : Inner( null ; )    // $i : Inner( outer == null )
then
  modify ( $i ) { setOuter( $o ); }
end
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list