Re: java8 lambdas and exceptions lead to compile error

2019-09-23 Thread Till Rohrmann
If there is such a check, then I'd say let's enable it for the moment. Cheers, Till On Fri, Sep 20, 2019 at 1:50 PM zz wrote: > thanks for reply. "add some context/comment" is very necessary, but I am > not sure where to add to remind others for avoiding similar mistakes, so Is > that a better

Re: java8 lambdas and exceptions lead to compile error

2019-09-20 Thread zz
thanks for reply. "add some context/comment" is very necessary, but I am not sure where to add to remind others for avoiding similar mistakes, so Is that a better way to add corresponding grammar checkstyle in checkstyle.xml? we can remove corresponding grammar checkstyle when we upgrade new Java

Re: java8 lambdas and exceptions lead to compile error

2019-09-19 Thread Till Rohrmann
Hi, if there is an easy way to make it also work with Java 1.8.0_77 I guess we could change it. That way we would make the life of our users easier. The solution proposed by JDK-8054569 seems quite simple. The only downside I see is that it could easily fell victim of a future refactoring/clean

java8 lambdas and exceptions lead to compile error

2019-09-19 Thread zz
Hey all, Recently, I used flink to do secondary development, when compile flink master(up-to-date) by using Java 1.8.0_77, got errors as follow: compile (default-compile) on project flink-table-api-java: Compilation failure

[jira] [Created] (FLINK-14093) Java8 lambdas and exceptions lead to compile error

2019-09-17 Thread zzsmdfj (Jira)
zzsmdfj created FLINK-14093: --- Summary: Java8 lambdas and exceptions lead to compile error Key: FLINK-14093 URL: https://issues.apache.org/jira/browse/FLINK-14093 Project: Flink Issue Type: Bug