Christoph Mayr-Dorn created DROOLS-6019:
-------------------------------------------
Summary: Using Java 8 stream lambda in RHS leads to compilation error
Key: DROOLS-6019
URL:
https://issues.redhat.com/browse/DROOLS-6019
Project: Drools
Issue Type: Bug
Affects Versions: 7.49.0.Final, 7.32.0.Final
Reporter: Christoph Mayr-Dorn
Assignee: Mario Fusco
Attachments: DroolsLambdaDemo.zip
When using a lambda expression in the left hand side, any variable that is first used
after the lambda expression is not added as a method parameter of (defaultConsequence),
and leads to error of the following type:
Exception in thread "main" java.lang.RuntimeException: Rule Base Build
Errors:Exception in thread "main" java.lang.RuntimeException: Rule Base Build
Errors:Error Messages:Message [id=1, kieBase=defaultKieBase, level=ERROR,
path=rules/demo.drl, line=9, column=0 text=Rule Compilation error $other cannot be
resolved]---Warning Messages:---Info Messages:
at demo.StartDemo.createKsessionFromFiles(StartDemo.java:51) at
demo.StartDemo.main(StartDemo.java:20)
--
This message was sent by Atlassian Jira
(v8.13.1#813001)