]
Christoph Mayr-Dorn commented on DROOLS-6019:
---------------------------------------------
Many thanks for checking out this issue so quickly. As the refered issue DROOLS-4397 was
part of a spring in 2019, any idea when that aspect will be incorporated in a future
release?
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.32.0.Final, 7.49.0.Final
Reporter: Christoph Mayr-Dorn
Assignee: Luca Molteni
Priority: Major
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)