The method call() of type XXX must override a superclass

简介: The method call() of type XXX must override a superclass

使用eclipse/myeclipse 时可能会出现@override 报错的问题

The method xxxx  of type xxxx  must override a superclass method

 

解决方法一: 修改eclipse的 Compiler level  

window ---> preferences-->java -->Compiler  

把Compiler compliance level 修改为1.7或更高版本

 

解决方法二:修改项目的 Compiler level  

鼠标右键项目-->properties-->java Compiler  

把Compiler compliance level 修改为1.7或更高版本

目录
相关文章
error : Class declarations lacks Q_OBJECT macro
error : Class declarations lacks Q_OBJECT macro
|
8月前
|
JavaScript Java C#
什么是 constructor signature in interface
什么是 constructor signature in interface
|
12月前
|
SQL Java 数据库连接
attempted to return null from a method with a primitive return type
attempted to return null from a method with a primitive return type
107 0
单方法对象(Single-method Object)
单方法对象(Single-method Object)
83 2
Object static methods
Object static methods
56 0
【Junit 报错】Test class should have exactly one public zero-argument constructor和Test class can only have one constructor
错误1: 1 java.lang.Exception: Test class should have exactly one public zero-argument constructor 2 at org.
6082 0
|
编译器
public <T> T method(T t)方法详解
public <T> T method(T t)方法详解
258 0
public <T> T method(T t)方法详解