[
https://issues.redhat.com/browse/DROOLS-4916?page=com.atlassian.jira.plug...
]
Toshiya Kobayashi updated DROOLS-4916:
--------------------------------------
Summary: Wrongly parse method chain in modify block in executable model (was:
Investigate modify parsing bug in executable model)
Wrongly parse method chain in modify block in executable model
--------------------------------------------------------------
Key: DROOLS-4916
URL:
https://issues.redhat.com/browse/DROOLS-4916
Project: Drools
Issue Type: Bug
Components: executable model
Reporter: Luca Molteni
Assignee: Toshiya Kobayashi
Priority: Major
Labels: good-first-issue
{noformat}
declare Application
categories : Set = new HashSet()
end
{noformat}
Then I had a modify statement scattered about:
{noformat}
modify ($a) {
$a.getCategories().add("hello");
}
{noformat}
The ExecutableModel did not seem to like any of those. I changed it to:
{noformat}
$a.getCategories().add("hello");
update($a);
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)