Information:java: javacTask: 源发行版 8 需要目标发行版 1.8
今天在调试“反射”部分的代码时,发现了一个问题,
Information:java: javacTask: 源发行版 8 需要目标发行版 1.8
Information:java: Errors occurred while compiling module 'day22_reflection'
Information:javac 1.8.0_201 was used to compile java sources
Information:Module "day22_reflection" was fully rebuilt due to project configuration/dependencies changes
Information:2019/8/4 15:03 - Build completed with 1 error and 0 warnings in 4 s 950 ms
Error:java: Compilation failed: internal java compiler error
解决方案:
在IDEA2019中,点击File -> Settings -> Java Compile,修改下图所示部分