Bug 94897 - [1.5] Compiler does not reject class with two erasure-equivalent methods
Summary: [1.5] Compiler does not reject class with two erasure-equivalent methods
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-12 03:12 EDT by Markus Keller CLA
Modified: 2005-05-27 09:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.