blob: c0e6752e4cb3df05916e91f594e7ff6b05a7f8a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
package test4;
public class JIRA207 {
public int run() {
int i = 3;
return foo(i);
}
public int foo(int i) {
int k = i + 3;
if (k > 0)
return k * k;
else
return k;
}
public int run2() {
int i = 0;
int p = i;
int q = p;
int r = q;
for (int k = 1; k < 3; ++k)
p += k;
for (int k = 3; k > 0; --k)
try {
foo(k);
p++;
}
finally {
p++;
}
try {
foo(p);
}
catch (RuntimeException e) {
if (p > 0)
throw e;
}
switch (p) {
case 1:
p = 100;
break;
default :
++p;
}
return p + r;
}
}
|