| 1 |
package codes.rafael.asmjdkbridge.test; |
| 2 |
|
| 3 |
public class TryThrowCatch { |
| 4 |
|
| 5 |
int t() { |
| 6 |
try { |
| 7 |
throw new RuntimeException(); |
| 8 |
} catch (Exception e) { |
| 9 |
return 2; |
| 10 |
} finally { |
| 11 |
x(); |
| 12 |
} |
| 13 |
} |
| 14 |
|
| 15 |
int t2() { |
| 16 |
Object o = new Object(); |
| 17 |
try { |
| 18 |
throw new RuntimeException(); |
| 19 |
} catch (Exception e) { |
| 20 |
return 2; |
| 21 |
} finally { |
| 22 |
x(); |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
int t3() { |
| 27 |
Object o = new Object(); |
| 28 |
try { |
| 29 |
throw new RuntimeException(); |
| 30 |
} finally { |
| 31 |
x(); |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
void x() { } |
| 36 |
} |