blob: 4f3769e524e249210405e8cfb7b62f1100ebb592 [file] [log] [blame]
package testdata;
public class TryCatchFinally {
public static void method() {
int count = 0;
try {
if (true) {
throw new NullPointerException();
}
throw new AssertionError();
} catch (IllegalStateException e) {
throw new AssertionError();
} catch (NullPointerException expected) {
count++;
} catch (RuntimeException e) {
throw new AssertionError();
} finally {
count++;
}
if (count != 2) {
throw new AssertionError();
}
}
}