[jboss-jira] [JBoss JIRA] (DROOLS-3800) Parser error with executable-model on Map literal expression in constraint

Luca Molteni (Jira) issues at jboss.org
Mon Apr 1 06:39:11 EDT 2019


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

Luca Molteni updated DROOLS-3800:
---------------------------------
          Tester: Tibor Zimanyi
    Story Points: 5


> Parser error with executable-model on Map literal expression in constraint
> --------------------------------------------------------------------------
>
>                 Key: DROOLS-3800
>                 URL: https://issues.jboss.org/browse/DROOLS-3800
>             Project: Drools
>          Issue Type: Bug
>          Components: executable model
>    Affects Versions: 7.18.0.Final
>         Environment: 7.18.0.Final
> 7.18.0.Final-redhat-00002 (RHDM7.3.0)
> 7.14.0.Final-redhat-00004 (RHDM7.1.2)
>            Reporter: Hiroko Miura
>            Assignee: Luca Molteni
>            Priority: Major
>              Labels: support
>         Attachments: MapLiteralTest.zip
>
>
> When MAP literal expression is used in LHS like the following
> {noformat}
>   when
>     $fact: Fact(
>       calc(["src":name, "target":"TEST"])
>     )
>  ...
> {noformat}
> KieBase build as Executable Model fails with parser error like:
> {noformat}
> org.drools.javaparser.ParseProblemException: 
> Encountered unexpected token: "[" "["
>     at line 1, column 6.
> Was expecting one of:
>     ")"
> {noformat}
> This error does not happen when building this rule as normal kjar.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list