The reason is that this problem literally, editor configuration error, and under normal circumstances change under the following few places on it
1, jdk corresponding compiler environment
2, using the editor and jdk version
3, corresponding to the above configuration is good, basically you can solve the problem of the error