[jboss-jira] [JBoss JIRA] (DROOLS-4140) Global

Peter Martinovič (Jira) issues at jboss.org
Thu Jun 6 07:43:00 EDT 2019


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

Peter Martinovič updated DROOLS-4140:
-------------------------------------
           Description: 
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}


  was:I will provide details ASAP, I wanted to have the issue number to create reproducer

    Steps to Reproduce: 
Apply the attached patch.
Run org.drools.modelcompiler.CompilerTest#testGlobalMethodNameStartingWithModify
               Summary: Global  (was: Executable rule model - first char of global's method name is lost during compilation)
           Environment: FLOW_DSL, PATTERN_DSL


> Global
> ------
>
>                 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
>
> 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}



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



More information about the jboss-jira mailing list