Bug 202830 - [compiler][1.5] eclipse fails to compile subclass when superclass has two generic methods of the same name
Summary: [compiler][1.5] eclipse fails to compile subclass when superclass has two gen...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.4 M2   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-10 14:50 EDT by Channing Walton CLA
Modified: 2007-09-18 05:44 EDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (2.46 KB, patch)
2007-09-11 14:17 EDT, Kent Johnson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Channing Walton CLA 2007-09-10 14:50:44 EDT
Given the following two classes:

public class Foo<V, E> {

    public int getThing(V v) {
        return 1;
    }

    public boolean getThing(E e) {
            return true;
    }
}

public class Bar<V,E> extends Foo<V,E> {

}

The error is:
Duplicate methods named getThing with the parameters (E) and (V) are defined by
the type Foo<V,E>

This is similar to bug 161541
Comment 1 Kent Johnson CLA 2007-09-11 10:34:25 EDT
Added MethodVerifyTest test120a()
Comment 2 Kent Johnson CLA 2007-09-11 14:17:29 EDT
Created attachment 78095 [details]
Proposed patch
Comment 3 Kent Johnson CLA 2007-09-12 11:13:17 EDT
Released into HEAD for 3.4M2
Comment 4 Channing Walton CLA 2007-09-12 11:34:56 EDT
excellent thanks
Comment 5 Jerome Lanneluc CLA 2007-09-18 05:44:34 EDT
Verified for 3.4M2 using I20070917-1800