Bug 39624 - Should warn about predicate throwing exceptions
Summary: Should warn about predicate throwing exceptions
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-04 05:18 EDT by Philipe Mulet CLA
Modified: 2003-07-16 07:07 EDT (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-07-04 05:18:17 EDT
Build 3.0m1

The compiler could issue a warning when meeting a boolean method declaring 
thrown exceptions.
Comment 1 Philipe Mulet CLA 2003-07-04 06:25:16 EDT
Added optional compiler diagnosis for predicate method declaring thrown 
exceptions (matching problem ID is IProblem.PredicateThrowingException) 
* COMPILER / Reporting Predicate Declaring Thrown Exceptions
*    When enabled, the compiler will issue an error or a warning when a boolean 
method declaration 
*    (aka predicate) is specifying a clause for thrown exceptions. Usually, 
predicates should only return
*    a boolean value and not raise exceptions.
*     - option 
id:         "org.eclipse.jdt.core.compiler.problem.predicateThrowingException"
*     - possible values:   { "error", "warning", "ignore" }
*     - default:           "ignore"

Comment 2 Philipe Mulet CLA 2003-07-04 06:25:26 EDT
Fixed
Comment 3 Philipe Mulet CLA 2003-07-04 06:49:43 EDT
Reworded 'predicate' into 'boolean method', since some boolean methods aren't 
predicate, but we are only checking boolean methods in a generic fashion.
Comment 4 David Audel CLA 2003-07-16 07:07:54 EDT
Verified.