Bug 344098 - [compiler] Add compiler warning for a method declaring both exception E and a subclass of E
Summary: [compiler] Add compiler warning for a method declaring both exception E and a...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact: Sasikanth Bharadwaj CLA
URL:
Whiteboard: 3.9 candidate
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-28 05:06 EDT by Eugen Paraschiv CLA
Modified: 2015-05-13 05:57 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.