Bug 80743

Summary: [compiler] Interface cannot define a method from Object with a different return type
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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