1
0
-1

The type checker is preventing the use of the Java 8 Streaming API and Lambdas. I was unable to find documentation in the community portal saying these features are intentionally being restricted.

The type checker failed at the following things:

  1. Double Colon Operator - https://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html
  2. Java 8 Lambdas - https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html
  3. Access to Stream Classes such as java.util.stream.Collectors

Is this a defect, or would it be a feature request?

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Adam

      "Groovy 2.3 doesn’t support the new syntax constructs offered by Java 8 (such as lambdas, method references, default methods in interfaces, etc), but you can very well already use the new APIs offered by JDK 8, and even use Groovy closures in lieu of Java 8 lambdas."


      More info could be found here:
      http://groovy-lang.org/releasenotes/groovy-2.3.html
      http://groovy-lang.org/releasenotes/groovy-2.4.html


      Cheers
      Rado

      1. Adam Kaplan

        Thank you, this is helpful information.  I'll need to convert my java classes to groovy classes then.

      CommentAdd your comment...