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

ASF GitHub Bot commented on FLINK-1062:
---------------------------------------

Github user StephanEwen commented on a diff in the pull request:

    https://github.com/apache/incubator-flink/pull/113#discussion_r17056414
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/api/common/functions/util/FunctionUtils.java
 ---
    @@ -84,4 +84,58 @@ public static boolean isLambdaFunction(Function 
function) {
                
                return false;
        }
    +   
    --- End diff --
    
    This looks like a good way of doing it to make the code compile on Java 
versions prior to 8.
    
    Here is a suggestion to give it more speaking error messages:
    
    When you find that the `writeReplace` method returns a `SerializedLambda`, 
try to look up that class. If the lookup fails, throw an error saying something 
like "User code tries to use lambdas, but framework is running with a Java 
version < 8" or so.


> Type Extraction for Lambdas
> ---------------------------
>
>                 Key: FLINK-1062
>                 URL: https://issues.apache.org/jira/browse/FLINK-1062
>             Project: Flink
>          Issue Type: Improvement
>          Components: Java API
>    Affects Versions: 0.7-incubating
>            Reporter: Stephan Ewen
>            Assignee: Timo Walther
>             Fix For: 0.7-incubating
>
>
> Lambdas currently work only for {{filter}} and {{reduce(a,b)}}, because 
> Lambda type extraction is not in place right now.
> We need to extend the type extraction for lambdas to support the other 
> functions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to