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

   Parent issue:
   - #5678 
   
   Failing test: 
`org.drools.model.codegen.execmodel.MvelOperatorsTest#testMatchesWithFunction`
   
   Note: both `STANDARD_FROM_DRL` and `PATTERN_DSL`
   
   Rule code snippet:
   ```
   function String addStar(String s) { return s + "*"; }
   ```
   
   Error output:
   ```
   ### parse : ANTLR4_PARSER_ENABLED = true
   line 2:45 missing ';' at '+'
   line 2:47 mismatched input '"*"' expecting {'boolean', 'byte', 'char', 
'double', 'float', 'int', 'long', 'new', 'short', 'super', 'switch', 'this', 
'void', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 
'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 
'permits', DECIMAL_LITERAL, HEX_LITERAL, OCT_LITERAL, BINARY_LITERAL, 
FLOAT_LITERAL, HEX_FLOAT_LITERAL, BOOL_LITERAL, CHAR_LITERAL, STRING_LITERAL, 
TEXT_BLOCK, 'null', '(', '<', '!', '~', '++', '--', '+', '-', '@', IDENTIFIER}
   21:45:05.199 [main] ERROR 
o.d.c.k.b.impl.AbstractKieProject.buildKnowledgePackages:280 - Unable to build 
KieBaseModel:defaultKieBase
   [2,45]: missing ';' at '+'
   [2,47]: mismatched input '"*"' expecting {'boolean', 'byte', 'char', 
'double', 'float', 'int', 'long', 'new', 'short', 'super', 'switch', 'this', 
'void', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 
'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 
'permits', DECIMAL_LITERAL, HEX_LITERAL, OCT_LITERAL, BINARY_LITERAL, 
FLOAT_LITERAL, HEX_FLOAT_LITERAL, BOOL_LITERAL, CHAR_LITERAL, STRING_LITERAL, 
TEXT_BLOCK, 'null', '(', '<', '!', '~', '++', '--', '+', '-', '@', IDENTIFIER}
   [0,0]: Parser returned a null Package
   
   
   java.lang.AssertionError: [Message [id=1, kieBase=defaultKieBase, 
level=ERROR, path=r0.drl, line=2, column=0
      text=missing ';' at '+'], Message [id=2, kieBase=defaultKieBase, 
level=ERROR, path=r0.drl, line=2, column=0
      text=mismatched input '"*"' expecting {'boolean', 'byte', 'char', 
'double', 'float', 'int', 'long', 'new', 'short', 'super', 'switch', 'this', 
'void', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 
'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 
'permits', DECIMAL_LITERAL, HEX_LITERAL, OCT_LITERAL, BINARY_LITERAL, 
FLOAT_LITERAL, HEX_FLOAT_LITERAL, BOOL_LITERAL, CHAR_LITERAL, STRING_LITERAL, 
TEXT_BLOCK, 'null', '(', '<', '!', '~', '++', '--', '+', '-', '@', 
IDENTIFIER}], Message [id=3, kieBase=defaultKieBase, level=ERROR, path=r0.drl, 
line=0, column=0
      text=Parser returned a null Package]]
   
        at 
org.drools.model.codegen.execmodel.BaseModelTest.createKieBuilder(BaseModelTest.java:157)
        at 
org.drools.model.codegen.execmodel.BaseModelTest.createKieBuilder(BaseModelTest.java:132)
        at 
org.drools.model.codegen.execmodel.BaseModelTest.getKieContainer(BaseModelTest.java:121)
        at 
org.drools.model.codegen.execmodel.BaseModelTest.getKieContainer(BaseModelTest.java:114)
        at 
org.drools.model.codegen.execmodel.BaseModelTest.getKieSession(BaseModelTest.java:110)
        at 
org.drools.model.codegen.execmodel.BaseModelTest.getKieSession(BaseModelTest.java:106)
        at 
org.drools.model.codegen.execmodel.MvelOperatorsTest.testMatchesWithFunction(MvelOperatorsTest.java:327)
   ```


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