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或更高版本

目录
相关文章
|
2月前
|
Java
Call to ‘super()‘ must be first statement in constructor body
文章解释了在Java中子类构造函数中调用父类构造函数时,必须首先调用`super()`,且不能有返回值。
58 0
Call to ‘super()‘ must be first statement in constructor body
|
3月前
|
API
Error: The method ‘DioHttpHeaders.add‘ has fewer named arguments than those of overridden method
Error: The method ‘DioHttpHeaders.add‘ has fewer named arguments than those of overridden method
20 3
|
6月前
Could not find method debug()
Could not find method debug()
252 59
|
6月前
FeignClient【问题】Cannot deserialize value of type``from Object value (token `JsonToken.START_OBJECT`)
FeignClient【问题】Cannot deserialize value of type``from Object value (token `JsonToken.START_OBJECT`)
802 0
|
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
187 0
|
Java 关系型数据库 MySQL
15. 成功解决:java: Can't generate mapping method with primitive return type.
今天启动 SpringBoot 项目时,报了如下错误:`java: Can't generate mapping method with primitive return type.`
1016 0
The method getServletContext() is undefined for the type HttpServletRequest
The method getServletContext() is undefined for the type HttpServletRequest
227 0
单方法对象(Single-method Object)
单方法对象(Single-method Object)
104 2
Object static methods
Object static methods
66 0