Bug 10166 - Interface hides Object methods
Summary: Interface hides Object methods
Status: RESOLVED DUPLICATE of bug 9985
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-25 10:43 EST by Neil Swingler CLA
Modified: 2002-03-01 04:32 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Swingler CLA 2002-02-25 10:43:47 EST
The following class won't compile. It appears the toString(int) method hides
the implicit toString() method from Object.

public class Test
{
    public static void main(String args[])
    {
        ((Interface) null).toString();
    }

    interface Interface
    {
        abstract String toString(int i);
    }

}

Using 20020214 stable build
Comment 1 Philipe Mulet CLA 2002-02-25 16:55:43 EST
Fixed in next integration build

*** This bug has been marked as a duplicate of 9985 ***