ADT
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast-unique-expr
pthread-emulation
qualifiedEnum
Last change
on this file since b7763da was ea593a3, checked in by Andrew Beach <ajbeach@…>, 4 years ago |
First draft of all the exception benchmarks. There is an issue with the Cforall linking.
|
-
Property mode
set to
100644
|
File size:
344 bytes
|
Line | |
---|
1 | // Cross a Try Statement with a Finally Clause
|
---|
2 |
|
---|
3 | public class CrossFinally {
|
---|
4 | public static void main(String[] args) {
|
---|
5 | int times = 1;
|
---|
6 | boolean shouldThrow = false;
|
---|
7 | if (0 < args.length) {
|
---|
8 | times = Integer.parseInt(args[0]);
|
---|
9 | }
|
---|
10 |
|
---|
11 | for (int count = 0 ; count < times ; ++count) {
|
---|
12 | try {
|
---|
13 | // ...
|
---|
14 | } finally {
|
---|
15 | // ...
|
---|
16 | }
|
---|
17 | }
|
---|
18 | }
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.