在 Idea 中编译时出现这个错误:Error:java: Compilation failed: internal java compiler error。
Information:Using javac 1.7.0_79 to compile java sources
Information:java: javacTask: 源发行版 1.6 需要目标发行版 1.6
Information:java: Errors occurred while compiling module 'MyThrift'
Information:Module "MyThrift" was fully rebuilt due to project configuration/dependencies changes
Information:2015/8/27 10:43 - Compilation completed with 1 error and 0 warnings in 4s 240ms
Error:java: Compilation failed: internal java compiler error
解决办法
File ==> Setting...==> Build, Execution, Deployment ==> Compiler ==> Java Compiler
设置相应 Module 的 target bytecode version 的合适版本(跟你JDK版本一致),这里我改成 1.7 版本的。