Bug 29955

Summary: Should not report incompatible throws clause for interface if Object non public ref method
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2003-01-22 06:30:25 EST
 
Comment 1 Philipe Mulet CLA 2003-01-22 06:32:24 EST
Build 2.1M4

interface I {
  Object clone() throws Exception;
}  


should compile ok (possibly issuing a warning).
Comment 2 Philipe Mulet CLA 2003-01-22 06:32:48 EST
Fixed, we now issue:

----------
1. WARNING in d:\eclipse\workspaces\dev2.0\plugins\Crap\src\X.java (at line 13)
	Object clone() throws Exception;
	       ^^^^^^^^^^^^^^^^^^^^^^^^
Exception Exception is not compatible with throws clause in Object.clone(), 
thus this interface cannot be implemented
----------
Comment 3 Philipe Mulet CLA 2003-01-22 06:40:52 EST
Fixed
Comment 4 David Audel CLA 2003-02-10 12:17:50 EST
Verified.