for (int i = 0; i < raisedCount; i++) {
TypeBinding raisedException;
if ((raisedException = raisedExceptions[i]) != null) {
- if (scope
+ if (BlockScope
.areTypesCompatible(raisedException, scope.getJavaLangRuntimeException())
- || scope.areTypesCompatible(raisedException, scope.getJavaLangError())) {
+ || BlockScope.areTypesCompatible(raisedException, scope.getJavaLangError())) {
remainingCount--;
raisedExceptions[i] = null;
}
}
// method treatment for unchecked exceptions
if (exceptionContext.isMethodContext) {
- if (scope
+ if (BlockScope
.areTypesCompatible(raisedException, scope.getJavaLangRuntimeException())
- || scope.areTypesCompatible(raisedException, scope.getJavaLangError()))
+ || BlockScope.areTypesCompatible(raisedException, scope.getJavaLangError()))
return;
// anonymous constructors are allowed to throw any exceptions (their thrown exceptions