netbeans EJB不是抽象的,并且不覆盖抽象方法修复解决方案?[已关闭]

yx2lnoni  于 2022-11-10  发布在  其他
关注(0)|答案(1)|浏览(117)

**已关闭。**此问题需要debugging details。当前不接受答案。

编辑问题以包含desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答问题。
8个月前关门了。
Improve this question
我在EJB类中遇到这个错误,我试图在其他问题中看到它,但我无法解决它,有人能帮助我吗?谢谢
“CanzoneEJB不是抽象的,并且不会覆盖CanzoneEJBRemote中的抽象方法cercaPerSerataEsibizione(整数)”
CanzoneEJB
Method CanzoneEJB
CanzoneEJBRemote

zbq4xfa0

zbq4xfa01#

CanzoneEJBRemote接口中的方法cercaPerSerataEsibizione采用Integer,但CanzoneEJB类中的相应方法采用String。由于抽象方法和覆盖方法的serataesibizione参数类型不同,因此该方法未被覆盖,Java将给出错误。
将CanzoneEJBRemote中的上述方法更改为接受字符串,或者将CanzoneEJB中的方法更改为接受整数。

相关问题