This is a known issue inside JDK. Update JDK version IIRC 8u212 or so can
solve the problem.

Best,
tison.


Xu Jianhai <snow4yo...@gmail.com> 于2019年10月29日周二 上午11:29写道:

> I am newbie to Flink, When I use cmd `mvn clean install -DskipTests
> -Dfast`, I got error info
> "[ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
> (default-compile) on project flink-table-api-java: Compilation failure
> [ERROR]
>
> /Users/snow_young/secrect/opensource/flink/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java:[560,85]
> 未报告的异常错误X; 必须对其进行捕获或声明以便抛出"
>
> Sorry for chines error info. I dig into stackoverflow, I think that is
> answer:
> https://stackoverflow.com/questions/25523375/java8-lambdas-and-exceptions.
> Firstly, I check my java, and download again, now My java version:
>
> java version "1.8.0_91"
> Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
>
> I use mac 10.12 system.
>
> But, I got same error again. I use `.<TableException>orElseThrow(() -> new
> TableException("Expected string literal as alias.")))` to explicit expose
> the throwable type, error disappeared. However, too many same errors need
> to solve.  What is the solution?
>
> Thx!
>

Reply via email to