[jboss-jira] [JBoss JIRA] (DROOLS-1009) lambda expressions cannot be parsed by ecj/janino
Mario Fusco (JIRA)
issues at jboss.org
Mon Dec 21 09:20:00 EST 2015
[ https://issues.jboss.org/browse/DROOLS-1009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-1009.
---------------------------------
Fix Version/s: 6.4.x
Resolution: Done
Drools 6.4.x will use ECJ 4.4.2 that supports Java 8 syntax.
Fixed by https://github.com/droolsjbpm/drools/commit/5e88d07b7
> lambda expressions cannot be parsed by ecj/janino
> -------------------------------------------------
>
> Key: DROOLS-1009
> URL: https://issues.jboss.org/browse/DROOLS-1009
> Project: Drools
> Issue Type: Feature Request
> Affects Versions: 6.3.0.Final
> Reporter: Malte Brunnlieb
> Assignee: Mario Fusco
> Fix For: 6.4.x
>
>
> Using Java8 lambda expression in the decision template like
> bean1.call(() -> $param);
> you will run into compiler issues with ejc as well as the currently supported version of JANINO (2.5.16). I tried to manually upgrade the JANINO compiler version, but got stuck in compatibility issues as the Scanner seems to have been changed regarding exception handling.
> Can you suggest to fix the incompatibility with JANINO > 2.5.16 such that lambda expressions can be parsed by the newest parsers? Would be nice :)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list