[jboss-jira] [JBoss JIRA] (DROOLS-5136) Compile error with String Map access and executable-model
Toshiya Kobayashi (Jira)
issues at jboss.org
Thu Mar 12 22:41:02 EDT 2020
[ https://issues.redhat.com/browse/DROOLS-5136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13997832#comment-13997832 ]
Toshiya Kobayashi commented on DROOLS-5136:
-------------------------------------------
Fixed by https://github.com/kiegroup/drools/commit/326b76e8b9d925860f7e037e93c0948c8d810836
> 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
> Fix For: 7.35.0.Final
>
>
> 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