Bug 80743 - [compiler] Interface cannot define a method from Object with a different return type
Summary: [compiler] Interface cannot define a method from Object with a different retu...
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 M5   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-10 19:05 EST by Olivier Thomann CLA
Modified: 2005-02-16 06:06 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 Olivier Thomann CLA 2004-12-10 19:05:40 EST
Using latest, this should fail.

interface X {
     long hashCode();
}

javac 1.5 reports:
hashCode() in X cannot override hashCode() in java.lang.Object; attempting to
use incompatible return type
Comment 1 Kent Johnson CLA 2005-01-12 12:23:07 EST
Added MethodVerify test031
Comment 2 David Audel CLA 2005-02-16 06:06:06 EST
Verified in I20050215-2300