Class must be either declared abstract or implement abstract method error

Answered

Greetings!

I am writing a Java application and I came across an error that wasn't supposed to be there. I have a class FabriceBouncer extending HeartPG, and HeartPG extends PositionalGraphic. This same class FabriceBouncer implements Bouncer. All the methods in Bouncer are written in Positional Graphic, meaning that FabriceBouncer inherits all of them, but IntelliJ is giving me an error saying Class 'FabriceBouncer' must be either declared abstract or implement abstract method... I tried to invalidate cache/Restart but the error persists, I can't even run the application.

I need your support on this as I couldn't find anything tangible on the net. Note: It works on other IDEs.

0
13 comments

Does the code compile? What Java version and compiler do you use?

If the code compiles without errors, but IntelliJ IDEA displays an error in the editor, please file a bug at https://youtrack.jetbrains.com/issues/IDEA and attach a sample project to reproduce it.

0
Avatar
Permanently deleted user

The code doesn't compile at all. The Java version and compiler I used are 1.8.0_144. Thanks

0

If the code doesn't compile, the problem is not with IntelliJ IDEA, but with the code or with the compiler/Java you are using.

0
Avatar
Permanently deleted user

The exact same code was used on Eclipse and worked perfectly, how can it be the compiler/Java or the code?

0

Eclipse may use a different compiler by default. Try using Eclipse compiler in IntelliJ IDEA instead of javac.

0
Avatar
Permanently deleted user

I tried this solution and made the compile Eclipse's instead of Javac, but the issue persists...

0

OK, please share the sample project that builds with command line javac, but fails to build in IntelliJ IDEA.

0
Avatar
Permanently deleted user

It's not that the project builds with Javac and fails to build in IntelliJ IDEA. It fails whether the compiler is Javac or Eclipse compiler, and both situations happens on IntelliJ IDEA...

0

We'd really like to see your code to confirm the issue in IntelliJ IDEA, but it's most likely a problem with your code.

0
Avatar
Permanently deleted user

Hello Serge,

Can I get the address where I can send you the code that is failing?

0

I hava this problem too, what can i do mr?

0

Pouya8ebrahimi open support ticket with the sample code as suggested above.

0

Please sign in to leave a comment.