yurloc opened a new issue, #5719:
URL: https://github.com/apache/incubator-kie-drools/issues/5719

   ## Parent issue
   - #5678 
   
   ## Failing tests
   - 
`org.drools.model.codegen.execmodel.CompilationFailuresTest#testMaxIntegerResultOnDoublePatternShouldntCompile`
   
   ## Notes
   - Both `STANDARD_FROM_DRL` and `PATTERN_DSL`.
   
   ## Rule code snippet
   ```
   $max : Double() from accumulate ( $num : Integer(); max($num) )
   ```
   
   ## Error output
   ```
   ### parse : ANTLR4_PARSER_ENABLED = true
   21:45:12.129 [main] ERROR 
o.d.c.k.b.impl.AbstractKieProject.buildKnowledgePackages:280 - Unable to build 
KieBaseModel:defaultKieBase
   InvalidExpressionErrorResult: Pattern of type: '[ClassObjectType 
class=java.lang.Double]' on rule 'X' is not compatible with type 
java.lang.Integer returned by accumulate function.
   ```
   The parser fails correctly, but the error message's line property is unset 
(-1).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to