Bug 540492 - Java Generic class inheritance hierarchy compile error - must implement the inherited abstract method
Summary: Java Generic class inheritance hierarchy compile error - must implement the i...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.9   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-26 03:16 EDT by Kirill Golovin CLA
Modified: 2023-02-26 11:21 EST (History)
1 user (show)

See Also:


Attachments
project to reproduce the error (8.59 KB, application/zip)
2018-10-26 03:16 EDT, Kirill Golovin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Golovin CLA 2018-10-26 03:16:51 EDT
Created attachment 276381 [details]
project to reproduce the error

I have small problem with compilation Netbeans 8.2 sources on Eclipse 4.9.0.

For some generic class eclipse displayed compilation error, but this class compilation with javac 1.8_60 successfully. And jar compilled javac 1.8_60 executed successful.

For me, this is a non-critical problem - I only develop in the eclipse, but the build with Ant scripts.

I make small example project to reproduce the error.
Eclipse 4.9.0 display 4 error for class SyncUpdateVisitor:
1)Description	Resource	Path	Location	Type
The method update(SchemaComponent, SchemaComponent, ComponentUpdater.Operation) of type SyncUpdateVisitor<T> must override or implement a supertype method	SyncUpdateVisitor.java	/test_eclipse_jdt_error_need_implement_method/src/org/netbeans/modules/xml/schema/model/impl/xdm	line 18	Java Problem

2)The method update(SchemaComponent, SchemaComponent, int, ComponentUpdater.Operation) of type SyncUpdateVisitor<T> must override or implement a supertype method	SyncUpdateVisitor.java	/test_eclipse_jdt_error_need_implement_method/src/org/netbeans/modules/xml/schema/model/impl/xdm	line 24	Java Problem

3)The type SyncUpdateVisitor<T> must implement the inherited abstract method ComponentUpdater<T>.update(T, T, ComponentUpdater.Operation)	SyncUpdateVisitor.java	/test_eclipse_jdt_error_need_implement_method/src/org/netbeans/modules/xml/schema/model/impl/xdm	line 10	Java Problem

4)The type SyncUpdateVisitor<T> must implement the inherited abstract method ComponentUpdater<T>.update(T, T, int, ComponentUpdater.Operation)	SyncUpdateVisitor.java	/test_eclipse_jdt_error_need_implement_method/src/org/netbeans/modules/xml/schema/model/impl/xdm	line 10	Java Problem

If select "Add unimplemented methods" throw modal dialog with message "can not implement the missing methods, either due to compile errors can not implement the missing methods, either due to compile errors or projects build path does not resolve all dependencies". However, this is a completely self-sufficient project without external dependencies.

Possibly this is a duplicate https://bugs.eclipse.org/bugs/show_bug.cgi?id=470006
Comment 1 Eclipse Genie CLA 2020-10-18 19:04:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Eclipse Genie CLA 2023-02-26 11:21:04 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.