MCPcopy Create free account
hub / github.com/LFYSec/MScan / throwCaught

Method throwCaught

src/test/resources/controlflow/Exceptions.java:41–56  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

39 }
40
41 void throwCaught(int i) {
42 try {
43 int x = i * i;
44 int[] a = new int[x];
45 if (a.length > 0) {
46 throw new IndexOutOfBoundsException();
47 } else if (a.length > 10) {
48 throw new IllegalStateException();
49 } else {
50 throw new ArithmeticException();
51 }
52 } catch (IllegalStateException e) {
53 } catch (ArithmeticException e) {
54 } catch (Exception e) {
55 }
56 }
57
58 void throwUncaught(int i)
59 throws ArithmeticException, IllegalStateException {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected