b.test_exception ();
}
catch (SynchronizationLockException ex) {
- return 1;
+ // OK
}
catch (Exception ex) {
- // OK
+ // The other exception should be overwritten by the lock one
+ return 1;
}
if (is_synchronized (b))
return 1;
d ();
}
catch (SynchronizationLockException ex) {
- return 2;
+ // OK
}
catch (Exception ex) {
- // OK
+ return 2;
}
if (is_synchronized (b))
return 1;