[
https://issues.jboss.org/browse/DROOLS-3477?page=com.atlassian.jira.plugi...
]
Hiroko Miura updated DROOLS-3477:
---------------------------------
Description:
Similar issue was reported and fixed in
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"
was:
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"
MVEL: expression (1 + 2 * 3 + 4 * $v ) causes "no such method
or function " for bind variable
-----------------------------------------------------------------------------------------------
Key: DROOLS-3477
URL:
https://issues.jboss.org/browse/DROOLS-3477
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.11.0.Final
Environment: MVEL2 2.4.2 Final
Reporter: Hiroko Miura
Assignee: Mario Fusco
Priority: Major
Similar issue was reported and fixed in
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.12.1#712002)