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

后端 未结 8 1008
耶瑟儿~
耶瑟儿~ 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条回答
  •  梦毁少年i
    2021-01-04 01:56

    I just found that when using maven I needed to also modify the pom.xml to have the compiler plugin. I had all my settings properly specified, but I needed this one:

    
      
        
          org.apache.maven.plugins
          maven-compiler-plugin
          true
          
              1.6
              1.6
          
        
      
    
    

提交回复
热议问题