Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 187034

Summary: [use supertype] method implementations in superclasses are ignored
Product: [Eclipse Project] JDT Reporter: Hannes Kegel <hk_eclipse>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
sample project none

Description Hannes Kegel CLA 2007-05-15 11:44:18 EDT
Build ID:  I20070503-1400

When a class A implements an interface with method M, and M is only implemented in a superclass of A, the two methods are not connected with constraints.

Use Supertype Where Possible can produce results with compile errors in these cases. 

Steps to Reproduce:
0. Import sample project.
1. Use Supertype Where Possible on Target, select SuperTarget
2. Compile error: "OtherSubType must implement ..."

Additional Information:
The Rename-Refactoring handles this case correctly (in RippleMethodFinder2).
Comment 1 Hannes Kegel CLA 2007-05-15 11:45:20 EDT
Created attachment 67261 [details]
sample project
Comment 2 Martin Aeschlimann CLA 2007-05-15 12:00:13 EDT
help is welcome!
Comment 3 Hannes Kegel CLA 2007-05-16 05:11:12 EDT
What Infer Type currently does to handle these cases is a bit expensive. I am working on improving it. When I am done I will try to propose a patch.
Comment 4 Eclipse Genie CLA 2020-01-27 14:50:03 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.