Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

class must either be declared abstract or implement convertToLegacyCheckingEqualizer

I wrote a simple Test case in IntelliJ 2017.1 Ultimate. And I see an absolutely bogus error message in IntelliJ

class must either be declared abstract or implement convertToLegacyCheckingEqualizer

My code compiles and runs absolutely fine but IntelliJ edition always shows this message for each and every test class.

I googled and found totally unsatisfactory answers like

* 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.

This solutions are just wrong and don't really address the problem.

enter image description here

like image 818
Knows Not Much Avatar asked Jul 17 '17 21:07

Knows Not Much


1 Answers

Give this a try: in IntelliJ, go to the File menu, then select the Invalidate Caches / Restart... option. On the resulting dialog, click the Invalidate and Restart button.

After IntelliJ has restarted, check whether you still have the same problem.

like image 165
Mike Allen Avatar answered Nov 01 '22 17:11

Mike Allen