[jboss-jira] [JBoss JIRA] (DROOLS-43) Binding makes parser accept non-boolean constraint

Mario Fusco (JIRA) jira-events at lists.jboss.org
Tue Oct 29 04:55:02 EDT 2013


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

Mario Fusco resolved DROOLS-43.
-------------------------------

    Fix Version/s: 5.5.1.Final
                   6.0.0.Final
       Resolution: Done

    
> Binding makes parser accept non-boolean constraint
> --------------------------------------------------
>
>                 Key: DROOLS-43
>                 URL: https://issues.jboss.org/browse/DROOLS-43
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Mario Fusco
>            Assignee: Mario Fusco
>             Fix For: 5.5.1.Final, 6.0.0.Final
>
>
> Below is a self-contained DRL which should not compile because the sum isn't a boolean expression. (Note that omitting "$x:" results in the correct diagnostic "predicate ... must be a boolean".)
> {code}
> declare Foo
>   a: double
>   b: double
> end
> rule what
> when
>     $c: Foo( $x: a + b )
> then
>     System.out.println( "foo: " + $c );
> 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