Bug 94897

Summary: [1.5] Compiler does not reject class with two erasure-equivalent methods
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mlists
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-05-12 03:12:46 EDT
I20050509-2010

package test1;
public class Main<A> {
    <T> T aaa(T t) {
        System.out.println("T");
        return null;
    }

    void aaa(Object o) {
        System.out.println("O");
    }
}

eclipse accepts, javac says:
<T>aaa(T) is already defined in test1.Main
    void aaa(Object o) {
         ^
Comment 1 Kent Johnson CLA 2005-05-24 13:21:53 EDT
Added MethodVerify test054
Comment 2 Maxime Daniel CLA 2005-05-27 07:38:40 EDT
Verified on build I20050527-0010.