[jboss-jira] [JBoss JIRA] (DROOLS-2854) MVEL: expression (1 + 2 * 3 + $v ) causes "no such method or function " for bind variable
Mario Fusco (JIRA)
issues at jboss.org
Wed Aug 8 12:52:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-2854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-2854.
---------------------------------
Resolution: Done
Fixed in mvel with https://github.com/mvel/mvel/commit/2928735882c6a8aa0dbe735b147e83e5cc65e318
> MVEL: expression (1 + 2 * 3 + $v ) causes "no such method or function " for bind variable
> -------------------------------------------------------------------------------------------
>
> Key: DROOLS-2854
> URL: https://issues.jboss.org/browse/DROOLS-2854
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.9.0.Final
> Environment: MVEL2 2.4.0 Final
> Reporter: Hiroko Miura
> Assignee: Mario Fusco
> Attachments: mvel2-var-test.zip
>
>
> When MVEL evaluates
> m.setStatus( 1 + 2 * 3 + m.getStatus() );
> the following exception happens.
> {noformat}
> Exception executing consequence for rule "Hello World" in com.sample: [Error: no such method or function: m]
> [Near : {... m.setStatus( 1 + 2 * 3 + m.getStatus() ); ....}]
> {noformat}
> If this is something like
> Exception executing consequence for rule "Hello World" in com.sample: [Error: no such method or function: m]
> m.setStatus( 1 + 2 + 3 + m.getStatus() ); <== Multiplication "*" is not used
> it works without above exception.
> This happens in both LHS and RHS with dialect "mvel"
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list