[jboss-jira] [JBoss JIRA] (DROOLS-4140) Global's method names starting with word modify are truncated

Luca Molteni (Jira) issues at jboss.org
Mon Jun 17 09:35:00 EDT 2019


     [ https://issues.jboss.org/browse/DROOLS-4140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luca Molteni resolved DROOLS-4140.
----------------------------------
    Resolution: Done


This was fixed here

https://github.com/kiegroup/drools/commit/3ecc1d6e87e4822d44ce75ee06913402ecab60aa

Parsing of modify statements is done using a parser grammar rather than using String replace, so this kind of collision won't happen anymore.

> Global's method names starting with word modify are truncated
> -------------------------------------------------------------
>
>                 Key: DROOLS-4140
>                 URL: https://issues.jboss.org/browse/DROOLS-4140
>             Project: Drools
>          Issue Type: Bug
>          Components: executable model
>    Affects Versions: 7.21.0.Final
>         Environment: FLOW_DSL, PATTERN_DSL
>            Reporter: Peter Martinovič
>            Assignee: Luca Molteni
>            Priority: Major
>         Attachments: DROOLS-4140-test.patch
>
>
> If global's method name starts with modify, the first character of the method name is lost during code generation.
> Compilation then fails.
> {code:java}
> org.drools.model.Rule rule = D.rule("Rule 1").build(D.on(var_g).execute((g) -> {
>             g.odifyIsTheFirstWordInTheMethodName();
>         }));
> {code}
> (It does not seem to happen with method names starting with keywords insert, delete.)



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the jboss-jira mailing list