Bug 29955 - Should not report incompatible throws clause for interface if Object non public ref method
Summary: Should not report incompatible throws clause for interface if Object non publ...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-22 06:30 EST by Philipe Mulet CLA
Modified: 2003-02-10 12:17 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 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.