[jboss-jira] [JBoss JIRA] (DROOLS-5242) Executable model silently ignores a malformed modify statement
Mario Fusco (Jira)
issues at jboss.org
Wed Apr 15 11:34:25 EDT 2020
Mario Fusco created DROOLS-5242:
-----------------------------------
Summary: Executable model silently ignores a malformed modify statement
Key: DROOLS-5242
URL: https://issues.redhat.com/browse/DROOLS-5242
Project: Drools
Issue Type: Bug
Reporter: Mario Fusco
Assignee: Mario Fusco
Normally a modify should be written like
{code}
modify($p) { setName("Mark") }
{code}
and in fact in drl if you try to use the name of the modifed variable also inside the modify block like in
{code}
modify($p) { $p.setName("Mark") }
{code}
it emits a compile time error. Conversely the executable model generator just ignores the modify statement and generates a model without it which is misleading. It has to also emit a compile time error.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list