Java compiler nonsense: is not abstract and does not override abstract method + error: name clash have the same erasure, yet neither overrides the other

Every question that has been asked in HELP will be answered in the form of a tutorial, here.
Forum rules
Please PM your tutorial to an admin for review before submitting it to this collection!
We want to ensure perfect quality for all information found here. Bad tutorials will be either fixed or deleted.
User avatar
3ICE
Admin
Posts: 2520
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Java compiler nonsense: is not abstract and does not override abstract method + error: name clash have the same erasure, yet neither overrides the other

Unread post by 3ICE »

Your code:

Code: Select all

class DenseGraph <E extends Edge> extends Graph {
Problem: You forgot an <E> from the end.

Fix:

Code: Select all

class DenseGraph <E extends Edge> extends Graph<E> {
ImageImageImageImageImage
Image
ImageImage

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest