Files
why3/bench/java/expected/ExceptionCatch.java

21 lines
470 B
Java
Raw Permalink Normal View History

2022-05-13 10:53:00 +02:00
/* This file has been extracted from module ExceptionCatch. */
import java.util.NoSuchElementException;
public class ExceptionCatch {
public static int noRaise(int i) throws Exception1 {
try {
return ExceptionThrow.func(i);
} catch (IndexOutOfBoundsException eX) {
return i;
} catch (NoSuchElementException eX) {
return i;
}
catch (Exception2 us) {
throw new RuntimeException("unreachable statement");
}
}
}