Building a rule written in MVEL dialect like (*1) containing a new line character between the last parameter and ); in a method call like (*1-1) in executable rule model, a build error (*2) occurs. This issue does not occur when:
- we build the rule with executable model disabled.
- the rule is written in Java dialect.
- the method takes only 1 parameter.
(*1)
package com.example.reproducer dialect "mvel" rule "rule4a2" when $fact : Fact() then $fact.method2("message1", "message2" ); // ..... (*1-1) end
(*2)
[ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.44.0.Final-redhat-00003:generateModel (default-generateModel) on project reproducer_model_compiler_4a: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.44.0.Final-redhat-00003:generateModel failed: (line 0,col 0) Parse error. Found "\n", expected one of "!=" "%" "%=" "&" "&&" "&=" ")" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||"
- is incorporated by
-
DROOLS-5879 Optional newline handling in MVEL parser
- Closed