加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

scala – 类必须声明为abstract或实现convertToLegacyCheckingEq

发布时间:2020-12-16 09:52:00 所属栏目:安全 来源:网络整理
导读:我在IntelliJ 2017.1 Ultimate中编写了一个简单的测试用例.我在IntelliJ中看到一个绝对错误的错误消息 class must either be declared abstract or implement convertToLegacyCheckingEqualizer 我的代码编译并运行得非常好,但IntelliJ版本总是为每个测试类
我在IntelliJ 2017.1 Ultimate中编写了一个简单的测试用例.我在IntelliJ中看到一个绝对错误的错误消息

class must either be declared abstract or implement convertToLegacyCheckingEqualizer

我的代码编译并运行得非常好,但IntelliJ版本总是为每个测试类显示此消息.

我用谷歌搜索,发现完全不满意的答案

* I restarted my IDE to solve the problem
* I deleted my idea project and recreated it to solve the problem
* I cleared ivy cache to solve the problem.

这个解决方案是错误的,并没有真正解决问题.

enter image description here

解决方法

尝试一下:在IntelliJ中,转到“文件”菜单,然后选择“无效缓存/重新启动…”选项.在结果对话框中,单击“无效并重新启动”按钮.

IntelliJ重新启动后,检查是否仍有相同的问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读