Bug 350518 - Check that only exceptions are thrown that are declared in the method signature
Summary: Check that only exceptions are thrown that are declared in the method signature
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: CDT Codan Inbox CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-28 03:12 EDT by Jens Elmenthaler CLA
Modified: 2011-07-06 18:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Elmenthaler CLA 2011-06-28 03:12:44 EDT
Build Identifier: HEAD

C++ compilers do not check that exceptions thrown by a method are also declared in the method's signature. Instead, program simply crash at runtime in case of such a mismatch. Because of this, such a checker is very useful.

The JDT is a good reference on what the CDT could check and how to offer quick fixes.

Reproducible: Always