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