[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2989) Slotted/named syntax for bindings silently accepted as positional argument

Mark Proctor (JIRA) jira-events at lists.jboss.org
Thu Sep 29 03:05:38 EDT 2011


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

Mark Proctor updated JBRULES-2989:
----------------------------------

    Assignee: Edson Tirelli  (was: Mark Proctor)


> Slotted/named syntax for bindings silently accepted as positional argument
> --------------------------------------------------------------------------
>
>                 Key: JBRULES-2989
>                 URL: https://issues.jboss.org/browse/JBRULES-2989
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler (expert)
>    Affects Versions: 5.2.0.CR1
>            Reporter: Wolfgang Laun
>            Assignee: Edson Tirelli
>
> declare Article
>     artid   : int;
>     artname : String;
>     custid  : int;
> end
> rule "articles of a customer"
> when
>     $a: Article( $artid: artid,  $artname: artname, $custid : custid ; ) ### semicolon here! ###
> then
>     System.out.println( "Art " + $artid + " " + $a.getArtname() + " by " + $custid );
> end
> This is accepeted by the compiler without error indication, but preceding a semicolon only positional argument should be permitted.
> Expect: an error message, compilation failure.

--
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