Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344098

Summary: [compiler] Add compiler warning for a method declaring both exception E and a subclass of E
Product: [Eclipse Project] JDT Reporter: Eugen Paraschiv <hanriseldon>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact: Sasikanth Bharadwaj <sasikanth.bharadwaj>
Severity: enhancement    
Priority: P3 CC: hanriseldon, jarthana, Olivier_Thomann, shankhba, srikanth_sankaran
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: 3.9 candidate

Description Eugen Paraschiv CLA 2011-04-28 05:06:52 EDT
Build Identifier: 

A compiler warning for the following case would be very helpfull: 
void method() throws IOException, FileNotFoundException {...}
Because FileNotFoundException extends IOException, the declaration of FileNotFoundException is redundant and should be flaged as such. 

Reproducible: Always
Comment 1 Srikanth Sankaran CLA 2012-01-28 20:05:04 EST
Don't expect to get to this enhancement in 3.8 time frame.
Comment 2 Srikanth Sankaran CLA 2013-04-25 22:33:45 EDT
Shankha, please take a look.