[jboss-jira] [JBoss JIRA] (DROOLS-5136) Compile error with String Map access and executable-model

Toshiya Kobayashi (Jira) issues at jboss.org
Mon Mar 9 02:42:29 EDT 2020


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

Toshiya Kobayashi reassigned DROOLS-5136:
-----------------------------------------

    Assignee: Toshiya Kobayashi  (was: Luca Molteni)


> Compile error with String Map access and executable-model
> ---------------------------------------------------------
>
>                 Key: DROOLS-5136
>                 URL: https://issues.redhat.com/browse/DROOLS-5136
>             Project: Drools
>          Issue Type: Bug
>          Components: executable model
>    Affects Versions: 7.34.0.Final
>            Reporter: Toshiya Kobayashi
>            Assignee: Toshiya Kobayashi
>            Priority: Major
>
> In case of executable-module, a Map constraint with a literal value on left hand side:
> {noformat}
>   Person("Value" == itemsString["Key"])
> {noformat}
>  generates redundant double-quotations hence results in a compile error.
> {code:java}
> org.drools.modelcompiler.util.EvaluationUtil.areNullSafeEquals("Value", "_this.getItemsString().get("Key")")
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list