You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/08/28 22:50:00 UTC

[jira] [Comment Edited] (GROOVY-8769) unexpected token: > error while build in Maven. Java lambda error

    [ https://issues.apache.org/jira/browse/GROOVY-8769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16595679#comment-16595679 ] 

Paul King edited comment on GROOVY-8769 at 8/28/18 10:49 PM:
-------------------------------------------------------------

What version of Groovy are you using? The following works fine for me using Groovy 3:
{code}
import static java.util.stream.Collectors.toList
def nums = [1, 20, 300, 50, 6]
assert nums.stream().filter(num -> num.toString().size() == 2).collect(toList()) == [20, 50]
{code}


was (Author: paulk):
What version of Groovy are you using?

> unexpected token: > error while build in Maven. Java lambda error
> -----------------------------------------------------------------
>
>                 Key: GROOVY-8769
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8769
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: srujana
>            Priority: Major
>
> {noformat}
> /var/www/mavenBuild/Job-825/ ABCController.java:209:44: unexpected token: >
> [INFO] /var/www/mavenBuild/Job-825ABCAction.java:257:64: unexpected token: >
> [INFO] /var/www/mavenBuild/Job-825/ABCController.java:209:44: unexpected token: >
> [INFO] /var/www/mavenBuild/Job-825/ABCAction.java:257:64: unexpected token: >
> {noformat}
>  
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project ActionRequest: Error during page generation: Error rendering Maven report: Parsing error while executing JavaNCSS 33.54 ParseException in /var/www/mavenBuild/Job-825/ABCController.java
> [INFO] [ERROR] Last useful checkpoint: "com.wc.ar.controller.ABCController.loadActionRequestSupervisor(ModelMap,Integer)"
> [INFO] [ERROR] Encountered " ">" "> "" at line 209, column 72. Encountered " ">" "> "" at line 257, column 85.
> {noformat}
> {noformat}
> this.documents = this.actionDocuments.stream().filter(doct -> doct.getToUserID() == null)
> .collect(Collectors.toList());
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)