@Override compile error, implementing an interface (eclipse jdk1.6.0_23 linux)

后端 未结 8 971
耶瑟儿~
耶瑟儿~ 2021-01-04 01:38

I am getting compile errors in eclipse when using the @Override annotation for a class that is implementing an interface.

Compiler compliance level is set to Java 6.

8条回答
  •  鱼传尺愫
    2021-01-04 01:58

    This feature is only valid in Java 6 and higher. I see you are using jdk 1.6. That's good. Possible cause: You are compiling with -source 1.5. Is this the case? If so, can you change it to -source 1.6?

提交回复
热议问题