[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:42:56 EST 2013


     [ https://issues.jboss.org/browse/DROOLS-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved DROOLS-51.
-------------------------------

    Fix Version/s: 5.6
                   6.0.0.Alpha1
       Resolution: Done

    
> 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
>             Fix For: 5.6, 6.0.0.Alpha1
>
>
> 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