Community
Participate
Working Groups
Build 3.0m1 The compiler could issue a warning when meeting a boolean method declaring thrown exceptions.
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"
Fixed
Reworded 'predicate' into 'boolean method', since some boolean methods aren't predicate, but we are only checking boolean methods in a generic fashion.
Verified.