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.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to