Matteo Casalino created DROOLS-5217:
---------------------------------------
Summary: Executable model compilation fails when binding a list from double
square bracket
Key: DROOLS-5217
URL:
https://issues.redhat.com/browse/DROOLS-5217
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.35.0.Final
Reporter: Matteo Casalino
Assignee: Mario Fusco
Attachments: binding-list-from-double-square-bracket.zip
Executable model rule compilation fails when trying to bind a _List_ from a double square
bracket
Example of DRL that fails to compile:
{noformat}
rule "binding field indexed with square brackets"
when $boundList: java.util.List() from [[1,2,3]]
Pojo($boundList.containsAll(integerList))
then
end
{noformat}
Error:
{noformat}
com.github.javaparser.ParseProblemException: Encountered unexpected token:
"[" "["
at line 1, column 1.
Was expecting one of:
"!"
"("
"+"
"++"
...
{noformat}
The example works fine when compiling without executable model.
We acknowledge that there are better and more efficient ways to achieve the same result as
the above example, but there are perhaps other use-cases for the double square bracket
mvel expression. As it is supported in DRL, should it be supported with executable model
too?
--
This message was sent by Atlassian Jira
(v7.13.8#713008)